def __external(self, level, message): info = { "reference_id": reference.Reference().get(), "username": session.username(), "service": 'ztd.blunders-web', "module": self.__module, "timestamp": str(datetime.datetime.now()), "level": level, "message": message } self.__fluentd.log(info)
def getBlundersByDateMobile(): # If 'username' not set, use default username associated with token. if not 'username' in request.json: request.json['username'] = session.username() return getBlundersByDate()
def getCommentsByUserMobile(): # If 'username' not set, use default username associated with token. if not 'username' in request.json: request.json['username'] = session.username() return getCommentsByUser()
def userBlundersCountMobile(): # If 'username' not set, use default username associated with token. if not 'username' in request.json: request.json['username'] = session.username() return userBlundersCount()