Fix build on Windows - revert function rename SetupHookLogging

Fixes https://github.com/matrix-org/dendrite/pull/2060/files#r761692681
This commit is contained in:
Martin Ashby 2021-12-03 22:22:49 +00:00
parent 8c862cddf4
commit abd370a133
No known key found for this signature in database
GPG key ID: 7C2A95403085B982
2 changed files with 3 additions and 3 deletions

View file

@ -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{

View file

@ -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())