diff options
author | 2024-09-20 13:30:33 +0000 | |
---|---|---|
committer | 2024-09-20 13:30:33 +0000 | |
commit | 77b095a8c32c423dea495f94babe49d7f169f060 (patch) | |
tree | 47d23864fb256823919e2ddeb2ebc75c85421166 /cmd/process-media/main.go | |
parent | [chore/frontend] Make ecks pee theme even more ecks pee er (#3324) (diff) | |
download | gotosocial-77b095a8c32c423dea495f94babe49d7f169f060.tar.xz |
[chore] ensure consistent caller name fetching regardless of compiler inlining (#3323)
* move logging levels into log package itself
* ensure inconsistent inlining doesn't mess with log calling function name
* remove unused global variable
* fix log level
Diffstat (limited to 'cmd/process-media/main.go')
-rw-r--r-- | cmd/process-media/main.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd/process-media/main.go b/cmd/process-media/main.go index 7487917bf..9fc4983ec 100644 --- a/cmd/process-media/main.go +++ b/cmd/process-media/main.go @@ -24,7 +24,6 @@ import ( "os/signal" "syscall" - "codeberg.org/gruf/go-logger/v2/level" "codeberg.org/gruf/go-storage/memory" "github.com/superseriousbusiness/gotosocial/internal/config" "github.com/superseriousbusiness/gotosocial/internal/db/bundb" @@ -40,7 +39,7 @@ func main() { ctx, cncl := signal.NotifyContext(ctx, syscall.SIGTERM, syscall.SIGINT) defer cncl() - log.SetLevel(level.INFO) + log.SetLevel(log.INFO) if len(os.Args) != 4 { log.Panic(ctx, "Usage: go run ./cmd/process-media <input-file> <output-processed> <output-thumbnail>") |