From 90b016bbcfbb4a7039e015d2133d216412b290c7 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 7 Feb 2019 00:50:47 +0000 Subject: [PATCH] cleanup main logging --- src/main.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.js b/src/main.js index 383f4ffe..cbcccaf5 100644 --- a/src/main.js +++ b/src/main.js @@ -38,14 +38,16 @@ async function main() { ({sessionId, loginData} = await login(USERNAME, PASSWORD, HOMESERVER)); } const storage = await createIdbStorage(`morpheus_session_${sessionId}`); - console.log("database created", storage); const session = new Session(storage); if (loginData) { await session.setLoginData(loginData); } await session.load(); const hsApi = new HomeServerApi(HOMESERVER, session.accessToken); - console.log("session loaded", session, hsApi); + console.log("session loaded"); + if (!session.syncToken) { + console.log("session needs initial sync"); + } return; const sync = new Sync(hsApi, session, storage); await sync.start();