From: Rudolf Polzer Date: Sat, 30 Sep 2023 11:26:24 +0000 (+0200) Subject: Logging. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=dc6356f8afdb0e213a394f19545b519d7bf248b5;p=xonotic%2Fxonotic.git Logging. --- diff --git a/misc/infrastructure/powerbot/bot.go b/misc/infrastructure/powerbot/bot.go index 4bd4ba74..9557685f 100644 --- a/misc/infrastructure/powerbot/bot.go +++ b/misc/infrastructure/powerbot/bot.go @@ -213,10 +213,11 @@ func Run() (err error) { defer configMu.Unlock() room.ID = tomb.ReplacementRoom config.Save() - log.Fatalf("room upgrade handled from %v to %v - need restart", evt.RoomID, tomb.ReplacementRoom) + log.Fatalf("room upgrade for %v handled from %v to %v - need restart", room.Name, evt.RoomID, tomb.ReplacementRoom) } } } + log.Printf("Room not found in config, so not doing room upgrade: %v", evt) }) syncer.OnEventType(event.EventMessage, func(source mautrix.EventSource, evt *event.Event) { if !isRoom(evt.RoomID) {