comparison src/plugins/plugin_xep_0045.py @ 1007:a7d33c7a8277

core (log): refactoring + twisted backend: - configuration is now done with classes, so inheritance is possible - twisted backend now use twisted log methods - log not produced by SàT directly in twisted backend are captured by an observer (twistedObserver) and sent back to SàT logging chain, with the "twisted" logger. - \\default output use normal twistd output, except in debug mode where it add an stdout output in addition to the log file. - when log_colors = True, colors are enabled only where it's possible (tty out), when log_colors=force colors are always enabled. - fixed some bad log.xxx calls
author Goffi <goffi@goffi.org>
date Mon, 05 May 2014 18:58:34 +0200
parents 291eb8216f6e
children 1513511a0586
comparison
equal deleted inserted replaced
1006:325fd230c15d 1007:a7d33c7a8277
505 else: 505 else:
506 self.__changing_nicks.discard(presence.nick) 506 self.__changing_nicks.discard(presence.nick)
507 self.userLeftRoom(room, user) 507 self.userLeftRoom(room, user)
508 508
509 def receivedGroupChat(self, room, user, body): 509 def receivedGroupChat(self, room, user, body):
510 log.debug('receivedGroupChat: room=%s user=%s body=%s', room, user, body) 510 log.debug('receivedGroupChat: room=%s user=%s body=%s' % (room, user, body))
511 511
512 def userJoinedRoom(self, room, user): 512 def userJoinedRoom(self, room, user):
513 if user.nick in self.__changing_nicks: 513 if user.nick in self.__changing_nicks:
514 self.__changing_nicks.remove(user.nick) 514 self.__changing_nicks.remove(user.nick)
515 else: 515 else: