From e1a512db170e2c8ca8334809e9a52098ae427884 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 7 Aug 2013 09:10:38 +0200 Subject: [PATCH] Added debug log to get more infos about not reproducible issue. --- .../javascripts/app/lib/app_post/task_manager.js.coffee | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/app/lib/app_post/task_manager.js.coffee b/app/assets/javascripts/app/lib/app_post/task_manager.js.coffee index e9cff4d04..047e5ecab 100644 --- a/app/assets/javascripts/app/lib/app_post/task_manager.js.coffee +++ b/app/assets/javascripts/app/lib/app_post/task_manager.js.coffee @@ -130,8 +130,9 @@ class _taskManagerSingleton extends App.Controller # create new task if not exists task = @get( key ) - #console.log('add', key, callback, params, to_not_show, task) + console.log('add', key, callback, params, to_not_show, task) if !task + console.log('add, create new taskbar in backend') task = new App.Taskbar task.load( key: key @@ -211,7 +212,7 @@ class _taskManagerSingleton extends App.Controller startController: (key, callback, params, to_not_show) => -# console.log('controller started...', callback, key, params) + console.log('controller start try...', callback, key) # activate controller worker = @worker( key ) @@ -221,6 +222,7 @@ class _taskManagerSingleton extends App.Controller # return if controller is already started return if @workersStarted[key] @workersStarted[key] = true + console.log('controller start now...', callback, key) # create new controller instanz params_app = _.clone(params) @@ -231,11 +233,14 @@ class _taskManagerSingleton extends App.Controller params_app['doNotLog'] = 1 a = new App[callback]( params_app ) @workers[ key ] = a + console.log('controller start now 2...', callback, key) # activate controller if !to_not_show + console.log('controller start now 2 activate...', callback, key) a.activate() + console.log('controller start now 2 return...', callback, key) return a get: ( key ) =>