File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import {
17
17
type LogEntryType ,
18
18
} from './shared' ;
19
19
import * as log from './log' ;
20
- import { isDevProd , isUnitTest } from '../../shared/env_vars' ;
20
+ import { isUnitTest } from '../../shared/env_vars' ;
21
21
import { Errors } from '../../types/Errors' ;
22
22
import LIBSESSION_CONSTANTS from '../../session/utils/libsession/libsession_constants' ;
23
23
import { buildPinoLogger } from './buildPinoLogger' ;
@@ -60,11 +60,9 @@ function now() {
60
60
}
61
61
62
62
function logAtLevel ( level : LogLevel , ...args : ReadonlyArray < unknown > ) : void {
63
- if ( isDevProd ( ) ) {
64
- // we are in renderer, we log to the console tab, always
65
- const prefix = getLogLevelString ( level ) . toUpperCase ( ) . padEnd ( levelMaxLength , ' ' ) ;
66
- console . _log ( prefix , now ( ) , ...args ) ;
67
- }
63
+ // we are in renderer, we log to the console tab, always
64
+ const prefix = getLogLevelString ( level ) . toUpperCase ( ) . padEnd ( levelMaxLength , ' ' ) ;
65
+ console . _log ( prefix , now ( ) , ...args ) ;
68
66
69
67
const levelString = getLogLevelString ( level ) ;
70
68
const msg = cleanArgs ( args ) ;
You can’t perform that action at this time.
0 commit comments