@@ -75,9 +75,6 @@ class Logger {
75
75
this . taskLogger = taskLogger ;
76
76
logger . info ( `taskLogger successfully created` ) ;
77
77
78
- return taskLogger . restore ( ) ;
79
- } )
80
- . then ( ( ) => {
81
78
this . _listenForNewContainers ( ) ;
82
79
83
80
this . state . status = 'ready' ;
@@ -148,6 +145,7 @@ class Logger {
148
145
const containerId = container . Id || container . id ;
149
146
const containerStatus = container . Status || container . status ;
150
147
const receivedLoggerId = _ . get ( container , 'Labels' , _ . get ( container , 'Actor.Attributes' ) ) [ 'io.codefresh.logger.id' ] ;
148
+ const runCreationLogic = _ . get ( container , 'Labels' , _ . get ( container , 'Actor.Attributes' ) ) [ 'io.codefresh.runCreationLogic' ] ;
151
149
const stepName = _ . get ( container , 'Labels' , _ . get ( container , 'Actor.Attributes' ) ) [ 'io.codefresh.logger.stepName' ] ;
152
150
const receivedLogSizeLimit = _ . get ( container ,
153
151
'Labels' ,
@@ -199,7 +197,7 @@ class Logger {
199
197
200
198
this . state [ containerId ] = { status : ContainerHandlingStatus . INITIALIZING } ;
201
199
logger . info ( `Handling container: ${ containerId } , status: '${ containerStatus } '` ) ;
202
- const stepLogger = this . taskLogger . create ( stepName , undefined , true ) ;
200
+ const stepLogger = this . taskLogger . create ( stepName , undefined , runCreationLogic ) ;
203
201
logger . info ( `Brought step logger for container: ${ containerId } ` ) ;
204
202
205
203
0 commit comments