forked from MirrorHub/mautrix-whatsapp
Fix bridge bot requests not being logged
This commit is contained in:
parent
328633b07a
commit
1e3c3a5548
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -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")
|
||||||
|
|
Loading…
Reference in a new issue