@@ -49,7 +49,7 @@ export async function scaleDown(): Promise<void> {
49
49
) ;
50
50
51
51
if ( runnersDict . size === 0 ) {
52
- console . debug ( `No active runners found for environment: '${ Config . Instance . environment } '` ) ;
52
+ console . info ( `No active runners found for environment: '${ Config . Instance . environment } '` ) ;
53
53
return ;
54
54
}
55
55
@@ -345,26 +345,26 @@ export function isRunnerRemovable(
345
345
) : boolean {
346
346
/* istanbul ignore next */
347
347
if ( ec2runner . instanceManagement ?. toLowerCase ( ) === 'pet' ) {
348
- console . debug ( `Runner ${ ec2runner . instanceId } is a pet instance and cannot be removed.` ) ;
348
+ console . info ( `Runner ${ ec2runner . instanceId } is a pet instance and cannot be removed.` ) ;
349
349
return false ;
350
350
}
351
351
352
352
if ( ghRunner !== undefined && ghRunner . busy ) {
353
- console . debug ( `Runner ${ ec2runner . instanceId } is busy and cannot be removed.` ) ;
353
+ console . info ( `Runner ${ ec2runner . instanceId } is busy and cannot be removed.` ) ;
354
354
return false ;
355
355
}
356
356
357
357
if ( ! runnerMinimumTimeExceeded ( ec2runner ) ) {
358
- console . debug ( `Runner ${ ec2runner . instanceId } has not exceeded the minimum running time.` ) ;
358
+ console . info ( `Runner ${ ec2runner . instanceId } has not exceeded the minimum running time.` ) ;
359
359
metrics . runnerLessMinimumTime ( ec2runner ) ;
360
360
return false ;
361
361
}
362
362
363
363
if ( ghRunner === undefined ) {
364
- console . debug ( `Runner ${ ec2runner . instanceId } was not found on GitHub. It might not be running an agent` ) ;
364
+ console . info ( `Runner ${ ec2runner . instanceId } was not found on GitHub. It might not be running an agent` ) ;
365
365
}
366
366
367
- console . debug ( `Runner ${ ec2runner . instanceId } is removable.` ) ;
367
+ console . info ( `Runner ${ ec2runner . instanceId } is removable.` ) ;
368
368
metrics . runnerIsRemovable ( ec2runner ) ;
369
369
return true ;
370
370
}
@@ -405,7 +405,7 @@ export function runnerMinimumTimeExceeded(runner: RunnerInfo): boolean {
405
405
const maxTime = moment ( new Date ( ) ) . subtract ( Config . Instance . minimumRunningTimeInMinutes , 'minutes' ) . utc ( ) ;
406
406
const minTimeExceeded = baseTime < maxTime ;
407
407
if ( minTimeExceeded ) {
408
- console . debug (
408
+ console . info (
409
409
`[runnerMinimumTimeExceeded] Instance ${ runner . instanceId } ${ reason } and has ` +
410
410
`exceeded the minimum running time of ${ Config . Instance . minimumRunningTimeInMinutes } mins ` +
411
411
`by ${ maxTime . diff ( baseTime , 'minutes' ) } mins.` ,
@@ -460,7 +460,7 @@ async function removeRunner(
460
460
461
461
if ( ghRunner !== undefined ) {
462
462
if ( Config . Instance . enableOrganizationRunners ) {
463
- console . debug (
463
+ console . info (
464
464
`GH Runner instance '${ ghRunner . id } '[${ ec2runner . org } ] for EC2 '${ ec2runner . instanceId } ' ` +
465
465
`[${ ec2runner . runnerType } ] will be removed.` ,
466
466
) ;
@@ -484,7 +484,7 @@ async function removeRunner(
484
484
}
485
485
} else {
486
486
const repo = getRepo ( ec2runner . repo as string ) ;
487
- console . debug (
487
+ console . info (
488
488
`GH Runner instance '${ ghRunner . id } '[${ ec2runner . repo } ] for EC2 '${ ec2runner . instanceId } ' ` +
489
489
`[${ ec2runner . runnerType } ] will be removed.` ,
490
490
) ;
0 commit comments