.BANCHO. Removed some schiavo logs

This commit is contained in:
Nyo 2016-12-26 09:52:43 +01:00
parent ebf0e1d458
commit 00c544b7c7
2 changed files with 2 additions and 5 deletions

View File

@ -259,10 +259,7 @@ def handle(tornadoRequest):
finally: finally:
# Console and discord log # Console and discord log
if len(loginData) < 3: if len(loginData) < 3:
msg = "Invalid bancho login request from **{}** (insufficient POST data)".format(requestIP) log.info("Invalid bancho login request from **{}** (insufficient POST data)".format(requestIP), "bunker")
else:
msg = "Bancho login request from **{}** for user **{}** ({})".format(requestIP, loginData[0], "failed" if err == True else "success")
log.info(msg, "bunker")
# Return token string and data # Return token string and data
return responseTokenString, responseData return responseTokenString, responseData

2
pep.py
View File

@ -188,7 +188,7 @@ if __name__ == "__main__":
# Discord # Discord
if generalUtils.stringToBool(glob.conf.config["discord"]["enable"]): if generalUtils.stringToBool(glob.conf.config["discord"]["enable"]):
glob.schiavo = schiavo.schiavo(glob.conf.config["discord"]["boturl"]) glob.schiavo = schiavo.schiavo(glob.conf.config["discord"]["boturl"], "**pep.py**")
else: else:
consoleHelper.printColored("[!] Warning! Discord logging is disabled!", bcolors.YELLOW) consoleHelper.printColored("[!] Warning! Discord logging is disabled!", bcolors.YELLOW)