mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-29 01:33:10 -06:00
Fix build on Windows - revert function rename SetupHookLogging
Fixes https://github.com/matrix-org/dendrite/pull/2060/files#r761692681
This commit is contained in:
parent
8c862cddf4
commit
abd370a133
|
|
@ -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{
|
||||
|
|
|
|||
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Reference in a new issue