Add debug statement

This commit is contained in:
2026-01-02 16:32:29 +01:00
parent 3162f44833
commit 911f8d85cb
2 changed files with 6 additions and 3 deletions

View File

@@ -32,9 +32,12 @@ class AuthController:
)
response = auth_api.login(auth_request_dto=auth_request)
print("Success:", response.success)
print("Message:", response.message)
print("Data:", response.data)
print(response.data["authToken"])
print(response.data["clientId"])
self._auth_data.set_client_id(response.data["authToken"])
self._auth_data.set_token(response.data["clientId"])
return jsonify({"success" : response.success, "message" : response.message , "data" : response.data}), 200
except Exception as e:
print(f"Exception when calling AuthAPI->login: {e}")

View File

@@ -16,7 +16,7 @@ class MessageController:
def __init__(self, app, auth_data : AuthData, host : str):
self._register_routes(app)
self.config = Configuration(host=host)
self.auth_data = auth_data
self._auth_data = auth_data
def _register_routes(self, app):
app.add_url_rule("/message/send", view_func=self.send, methods=['POST'])