File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1+ /* eslint-disable @typescript-eslint/naming-convention */
12/* eslint-disable @typescript-eslint/no-extraneous-class */
23/* eslint-disable max-classes-per-file */
34import { Logger } from './Logger' ;
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export class Logger
2626 * in a shard process
2727 * @internal
2828 */
29- public static _shard : string ;
29+ public static shard : string ;
3030
3131 private constructor ( )
3232 {
@@ -72,8 +72,8 @@ export class Logger
7272 const zeroPad : ( n : number | string ) => string = n => `0${ n } ` . slice ( - 2 ) ;
7373 const shard : ( ) => string = ( ) =>
7474 {
75- const isSharded : boolean = typeof Logger . _shard !== 'undefined' ;
76- const shardNum : string = ( Logger . _shard || 0 ) < 10 ? zeroPad ( Logger . _shard || 0 ) : Logger . _shard . toString ( ) ;
75+ const isSharded : boolean = typeof Logger . shard !== 'undefined' ;
76+ const shardNum : string = ( Logger . shard || 0 ) < 10 ? zeroPad ( Logger . shard || 0 ) : Logger . shard . toString ( ) ;
7777 const shardTag : string = `[${ wrapColor ( colors . cyan , `SHARD_${ shardNum } ` ) } ]` ;
7878 return isSharded ? shardTag : '' ;
7979 } ;
You can’t perform that action at this time.
0 commit comments