Moved to @log for logging.
This commit is contained in:
parent
01c0fbf61b
commit
a4df2839fa
1 changed files with 3 additions and 8 deletions
|
@ -120,9 +120,9 @@ class _taskManagerSingleton extends App.Controller
|
||||||
|
|
||||||
# create new task if not exists
|
# create new task if not exists
|
||||||
task = @get( key )
|
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
|
if !task
|
||||||
console.log('add, create new taskbar in backend')
|
@log 'debug', 'add, create new taskbar in backend'
|
||||||
task = new App.Taskbar
|
task = new App.Taskbar
|
||||||
task.load(
|
task.load(
|
||||||
key: key
|
key: key
|
||||||
|
@ -202,7 +202,7 @@ class _taskManagerSingleton extends App.Controller
|
||||||
|
|
||||||
startController: (key, callback, params, to_not_show) =>
|
startController: (key, callback, params, to_not_show) =>
|
||||||
|
|
||||||
console.log('controller start try...', callback, key)
|
@log 'debug', 'controller start try...', callback, key
|
||||||
|
|
||||||
# create params
|
# create params
|
||||||
params_app = _.clone(params)
|
params_app = _.clone(params)
|
||||||
|
@ -222,19 +222,15 @@ class _taskManagerSingleton extends App.Controller
|
||||||
return
|
return
|
||||||
|
|
||||||
@workersStarted[key] = true
|
@workersStarted[key] = true
|
||||||
console.log('controller start now...', callback, key)
|
|
||||||
|
|
||||||
# create new controller instanz
|
# create new controller instanz
|
||||||
a = new App[callback]( params_app )
|
a = new App[callback]( params_app )
|
||||||
@workers[ key ] = a
|
@workers[ key ] = a
|
||||||
console.log('controller start now 2...', callback, key)
|
|
||||||
|
|
||||||
# activate controller
|
# activate controller
|
||||||
if !to_not_show
|
if !to_not_show
|
||||||
console.log('controller start now 2 activate...', callback, key)
|
|
||||||
a.activate(params_app)
|
a.activate(params_app)
|
||||||
|
|
||||||
console.log('controller start now 2 return...', callback, key)
|
|
||||||
return a
|
return a
|
||||||
|
|
||||||
get: ( key ) =>
|
get: ( key ) =>
|
||||||
|
@ -378,7 +374,6 @@ class _taskManagerSingleton extends App.Controller
|
||||||
task_count = 0
|
task_count = 0
|
||||||
for task in @allTasks
|
for task in @allTasks
|
||||||
task_count += 1
|
task_count += 1
|
||||||
console.log('START', task)
|
|
||||||
do (task) =>
|
do (task) =>
|
||||||
App.Delay.set(
|
App.Delay.set(
|
||||||
=>
|
=>
|
||||||
|
|
Loading…
Reference in a new issue