def error(self, err): """ Log error @param err: @type err: """ Logger.error("[%s] %s" % (self.__class__.__name__, unicode(err).encode('utf-8')))
def error(self, err): """ Log error @param err: @type err: """ if sys.version_info[0] < 3: if not isinstance(err, unicode): err = unicode(err, 'latin2') Logger.error("[%s] %s" % (self.__class__.__name__, err))