From 5ee4d7a6020e32159e735ff9e5b38be5da6bfe9c Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 8 Nov 2024 23:04:51 +0200 Subject: dont use logger but color outputter --- internal/platforms/mastodon/mastodon.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/platforms/mastodon') diff --git a/internal/platforms/mastodon/mastodon.go b/internal/platforms/mastodon/mastodon.go index b6645f8..c0264de 100644 --- a/internal/platforms/mastodon/mastodon.go +++ b/internal/platforms/mastodon/mastodon.go @@ -6,10 +6,10 @@ import ( "encoding/json" "fmt" "io" - "log" "net/http" "time" + "codeberg.org/snonux/gos/internal/colour" "codeberg.org/snonux/gos/internal/config" "codeberg.org/snonux/gos/internal/entry" "codeberg.org/snonux/gos/internal/prompt" @@ -28,7 +28,7 @@ func Post(ctx context.Context, args config.Args, sizeLimit int, en entry.Entry) return fmt.Errorf("failed to marshal payload: %w", err) } if args.DryRun { - log.Println("Not posting", en, "to Mastodon as dry-run enabled") + colour.Infoln("Not posting", en, "to Mastodon as dry-run enabled") return nil } if err := prompt.FileAction("Do you want to post this message to Mastodon?", content, en.Path); err != nil { -- cgit v1.2.3