From 2a761a52d3885a7120d74e9d2fb6ad3e0e757216 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Wed, 22 Jun 2016 11:48:53 -0500 Subject: [PATCH] more debugs --- src/platform.js | 1 + src/taskmanager.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/platform.js b/src/platform.js index d3c6ff893..d95f21a02 100644 --- a/src/platform.js +++ b/src/platform.js @@ -64,6 +64,7 @@ function initialize(callback) { // database dir and we cannot call service scripts until that's done. // TODO: make this smarter to not wait for 30secs for the crash-restart case gPlatformReadyTimer = setTimeout(function () { + debug('emitting platform ready'); gPlatformReadyTimer = null; exports.events.emit(exports.EVENT_READY); }, 30000); diff --git a/src/taskmanager.js b/src/taskmanager.js index f1821048d..a135a5c34 100644 --- a/src/taskmanager.js +++ b/src/taskmanager.js @@ -74,8 +74,10 @@ function waitForPendingTasks(callback) { function platformReady() { if (cloudron.isConfiguredSync()) { + debug('platformReady: configured, resuming tasks'); resumeTasks(); } else { + debug('platformReady: not configured yet. waiting for configured event'); cloudron.events.on(cloudron.EVENT_CONFIGURED, resumeTasks); } }