Mercurial > libervia-backend
comparison src/plugins/plugin_misc_room_game.py @ 1908:ffcd7904b655
plugin room_game: decrease the level of two logging messages from warning to info
author | souliane <souliane@mailoo.org> |
---|---|
date | Fri, 11 Mar 2016 16:38:23 +0100 |
parents | d17772b0fe22 |
children | 2daf7b4c6756 |
comparison
equal
deleted
inserted
replaced
1907:0b748ad46ede | 1908:ffcd7904b655 |
---|---|
513 log.error(u'Internal error: profile %s has not joined the room %s' % (profile, room_jid.userhost())) | 513 log.error(u'Internal error: profile %s has not joined the room %s' % (profile, room_jid.userhost())) |
514 return False, False | 514 return False, False |
515 if self._gameExists(room_jid): | 515 if self._gameExists(room_jid): |
516 is_referee = self.isReferee(room_jid, user_nick) | 516 is_referee = self.isReferee(room_jid, user_nick) |
517 if self._gameExists(room_jid, started=True): | 517 if self._gameExists(room_jid, started=True): |
518 log.warning(_(u"%(game)s game already created in room %(room)s") % {'game': self.name, 'room': room_jid.userhost()}) | 518 log.info(_(u"%(game)s game already created in room %(room)s") % {'game': self.name, 'room': room_jid.userhost()}) |
519 return False, is_referee | 519 return False, is_referee |
520 elif not is_referee: | 520 elif not is_referee: |
521 log.warning(_(u"%(game)s game in room %(room)s can only be created by %(user)s") % {'game': self.name, 'room': room_jid.userhost(), 'user': user_nick}) | 521 log.info(_(u"%(game)s game in room %(room)s can only be created by %(user)s") % {'game': self.name, 'room': room_jid.userhost(), 'user': user_nick}) |
522 return False, False | 522 return False, False |
523 else: | 523 else: |
524 self._initGame(room_jid, user_nick) | 524 self._initGame(room_jid, user_nick) |
525 return True, False | 525 return True, False |
526 | 526 |