Fix bridge bot requests not being logged

This commit is contained in:
Tulir Asokan 2021-11-02 12:27:38 +02:00
parent 328633b07a
commit 1e3c3a5548

View file

@ -241,7 +241,6 @@ func (bridge *Bridge) Init() {
os.Exit(11) os.Exit(11)
} }
_, _ = bridge.AS.Init() _, _ = bridge.AS.Init()
bridge.Bot = bridge.AS.BotIntent()
bridge.Log = log.Create() bridge.Log = log.Create()
bridge.Config.Logging.Configure(bridge.Log) bridge.Config.Logging.Configure(bridge.Log)
@ -254,6 +253,7 @@ func (bridge *Bridge) Init() {
} }
} }
bridge.AS.Log = log.Sub("Matrix") bridge.AS.Log = log.Sub("Matrix")
bridge.Bot = bridge.AS.BotIntent()
bridge.Log.Infoln("Initializing", VersionString) bridge.Log.Infoln("Initializing", VersionString)
bridge.Log.Debugln("Initializing database connection") bridge.Log.Debugln("Initializing database connection")