log when it cannot get room settings
This commit is contained in:
parent
6d12a61b2a
commit
fe17195bc1
1 changed files with 3 additions and 0 deletions
|
|
@ -50,6 +50,9 @@ func (m *Manager) SetBot(cfg Bot) error {
|
||||||
// GetRoom config
|
// GetRoom config
|
||||||
func (m *Manager) GetRoom(roomID id.RoomID) (Room, error) {
|
func (m *Manager) GetRoom(roomID id.RoomID) (Room, error) {
|
||||||
config, err := m.lp.GetRoomAccountData(roomID, acRoomKey)
|
config, err := m.lp.GetRoomAccountData(roomID, acRoomKey)
|
||||||
|
if err != nil {
|
||||||
|
m.log.Warn().Err(err).Str("room_id", roomID.String()).Msg("cannot get room settings")
|
||||||
|
}
|
||||||
if config == nil {
|
if config == nil {
|
||||||
config = make(Room, 0)
|
config = make(Room, 0)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue