From dc8461e1d16e857aec125da5599f44573c4a8dd9 Mon Sep 17 00:00:00 2001 From: Tristan Gosselin-Hane Date: Fri, 14 Dec 2018 02:33:04 -0500 Subject: [PATCH] Add more logging to re-authenticaiton logic --- webhook-bridge.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webhook-bridge.py b/webhook-bridge.py index bd1d2d5..554d866 100755 --- a/webhook-bridge.py +++ b/webhook-bridge.py @@ -202,11 +202,13 @@ def main(): if isinstance(exception, YggdrasilError): if (exception.yggdrasil_error == "ForbiddenOperationException" and exception.yggdrasil_error == "Invalid token"): + log.info("Authentication token expired. Re-authenticating with Mojang.") new_auth_token = authentication.AuthenticationToken() try: new_auth_token.authenticate(*credentials) connection.auth_token = new_auth_token except YggdrasilError as ye: + log.error("Error while re-authenticating with Mojang.") log.error(ye) log.info('Reconnecting.') connection.connect()