summaryrefslogtreecommitdiff
path: root/cmd/gotosocial/runaction.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/gotosocial/runaction.go')
-rw-r--r--cmd/gotosocial/runaction.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/gotosocial/runaction.go b/cmd/gotosocial/runaction.go
index fc548d85f..c8af9ddbe 100644
--- a/cmd/gotosocial/runaction.go
+++ b/cmd/gotosocial/runaction.go
@@ -41,11 +41,11 @@ func runAction(c *cli.Context, a cliactions.GTSAction) error {
return fmt.Errorf("error parsing config: %s", err)
}
- // create a logger with the log level, formatting, and output splitter already set
- log, err := log.New(conf.LogLevel)
+ // initialize the global logger to the log level, with formatting and output splitter already set
+ err = log.Initialize(conf.LogLevel)
if err != nil {
return fmt.Errorf("error creating logger: %s", err)
}
- return a(c.Context, conf, log)
+ return a(c.Context, conf)
}