diff --git a/internal/log_unix.go b/internal/log_unix.go index d49c747ff..44cb75beb 100644 --- a/internal/log_unix.go +++ b/internal/log_unix.go @@ -26,10 +26,10 @@ import ( lSyslog "github.com/sirupsen/logrus/hooks/syslog" ) -// SetupLogging configures the logging hooks defined in the configuration. +// SetupHookLogging configures the logging hooks defined in the configuration. // If something fails here it means that the logging was improperly configured, // so we just exit with the error -func SetupLogging(hooks []config.LogrusHook, componentName string) { +func SetupHookLogging(hooks []config.LogrusHook, componentName string) { logrus.SetReportCaller(true) logrus.SetFormatter(&utcFormatter{ &logrus.TextFormatter{ diff --git a/setup/base/base.go b/setup/base/base.go index a3f3a79f0..1249e1422 100644 --- a/setup/base/base.go +++ b/setup/base/base.go @@ -123,7 +123,7 @@ func NewBaseDendrite(cfg *config.Dendrite, componentName string, options ...Base logrus.Fatalf("Failed to start due to configuration errors") } - internal.SetupLogging(cfg.Logging, componentName) + internal.SetupHookLogging(cfg.Logging, componentName) internal.SetupPprof() logrus.Infof("Dendrite version %s", internal.VersionString())