]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
Logging.
authorRudolf Polzer <divVerent@gmail.com>
Sat, 30 Sep 2023 11:26:24 +0000 (13:26 +0200)
committerRudolf Polzer <divVerent@gmail.com>
Sat, 30 Sep 2023 11:26:24 +0000 (13:26 +0200)
misc/infrastructure/powerbot/bot.go

index 4bd4ba742109e8d90aea46ebf66e8f775f3c9bc6..9557685fc5bf9cc31b1b18423513134743973d4a 100644 (file)
@@ -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) {