diff --git a/README.md b/README.md index d2d1b2b..2f3a5c5 100644 --- a/README.md +++ b/README.md @@ -73,8 +73,6 @@ nixos-unstable, `nixos-version` >= 22.05) nix run github:chmouel/gosmee -- --help # your args are here ``` - - also use it to test and develop the source code: ```shell @@ -118,7 +116,7 @@ Another option is to save all the relays as shell script that can be replayed wi gosmee client --saveDir /tmp/savedreplay https://smee.io/aBcDeF https://localhost:8080 ``` -This command will save the JSON data of new payloads received at your smee URL to `/tmp/savedreplay/timestamp.json` and create a shell script with cURL options to `/tmp/savedreplay/timestamp.sh`. You can replay the webhook effortlessly by repeatedly running the shell script. +This command will save the JSON data of new payloads received at your smee URL to `/tmp/savedreplay/timestamp.json` and create a shell script with cURL options to `/tmp/savedreplay/timestamp.sh`. You can replay the webhook effortlessly by repeatedly running the shell script. You can ignore certain events (identified by GitLab/GitHub/Bitbucket) by adding one or more `--ignore-event` flags. diff --git a/gosmee/app.go b/gosmee/app.go index def787c..34283e4 100644 --- a/gosmee/app.go +++ b/gosmee/app.go @@ -87,7 +87,7 @@ accessible endpoint and forward request to your local service`, Action: func(c *cli.Context) error { nocolor := c.Bool("nocolor") w := os.Stdout - logger := &slog.Logger{} + var logger *slog.Logger switch c.String("output") { case "json": logger = slog.New(slog.NewJSONHandler(os.Stdout, nil))