From a4df2839fac4a4d2f79ebd46a6d12b5cf1ad30d1 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 23 Apr 2014 08:42:59 +0200 Subject: [PATCH] Moved to @log for logging. --- .../app/lib/app_post/task_manager.js.coffee | 11 +++-------- 1 file changed, 3 insertions(+), 8 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 f866853e9..f8cf74c4e 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 @@ -120,9 +120,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, active) + @log 'debug', 'add', key, callback, params, to_not_show, task, active if !task - console.log('add, create new taskbar in backend') + @log 'debug', 'add, create new taskbar in backend' task = new App.Taskbar task.load( key: key @@ -202,7 +202,7 @@ class _taskManagerSingleton extends App.Controller startController: (key, callback, params, to_not_show) => - console.log('controller start try...', callback, key) + @log 'debug', 'controller start try...', callback, key # create params params_app = _.clone(params) @@ -222,19 +222,15 @@ class _taskManagerSingleton extends App.Controller return @workersStarted[key] = true - console.log('controller start now...', callback, key) # create new controller instanz 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(params_app) - console.log('controller start now 2 return...', callback, key) return a get: ( key ) => @@ -378,7 +374,6 @@ class _taskManagerSingleton extends App.Controller task_count = 0 for task in @allTasks task_count += 1 - console.log('START', task) do (task) => App.Delay.set( =>