From 00c544b7c71ee30531b94b61c97c9d56f607400b Mon Sep 17 00:00:00 2001 From: Nyo Date: Mon, 26 Dec 2016 09:52:43 +0100 Subject: [PATCH] .BANCHO. Removed some schiavo logs --- events/loginEvent.py | 5 +---- pep.py | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/events/loginEvent.py b/events/loginEvent.py index 9886f43..184a6df 100644 --- a/events/loginEvent.py +++ b/events/loginEvent.py @@ -259,10 +259,7 @@ def handle(tornadoRequest): finally: # Console and discord log if len(loginData) < 3: - msg = "Invalid bancho login request from **{}** (insufficient POST data)".format(requestIP) - else: - msg = "Bancho login request from **{}** for user **{}** ({})".format(requestIP, loginData[0], "failed" if err == True else "success") - log.info(msg, "bunker") + log.info("Invalid bancho login request from **{}** (insufficient POST data)".format(requestIP), "bunker") # Return token string and data return responseTokenString, responseData \ No newline at end of file diff --git a/pep.py b/pep.py index 2d3d32a..8739e2a 100644 --- a/pep.py +++ b/pep.py @@ -188,7 +188,7 @@ if __name__ == "__main__": # Discord 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: consoleHelper.printColored("[!] Warning! Discord logging is disabled!", bcolors.YELLOW)