Exemple #1
0
    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)
Exemple #2
0
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()
Exemple #3
0
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()
Exemple #4
0
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()