From 144178f835ff449cf4c0e2ca7f9760e0bada1ce5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Mass=C3=A9?= Date: Thu, 6 Jul 2017 10:12:05 +0200 Subject: [PATCH] add some logs --- server.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server.js b/server.js index bc0822f..1ed4392 100644 --- a/server.js +++ b/server.js @@ -112,11 +112,15 @@ function handle_application(res, action, type, app) { authenticate_to_sso(res, (access_token) => { get_sso_client(res, client.client_id, access_token, (sso_client) => { if (sso_client == null) { + console.log("Could not find a client, creating it..."); create_sso_client(res, access_token, client, (response) => { + console.log("OK, client created !") success(res, 200, "TODO"); }); } else { + console.log("Found an existing client with id = %d", sso_client.id); update_sso_client(res, access_token, client, sso_client.id, (response) => { + console.log("OK, client updated !") success(res, 200, "TODO"); }); }