File tree Expand file tree Collapse file tree 3 files changed +3
-12
lines changed
modules/main/profile_section/advanced Expand file tree Collapse file tree 3 files changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -134,11 +134,7 @@ proc connect(self: AppController) =
134134 # Handle runtime log level settings changes
135135 if not main_constants.runtimeLogLevelSet ():
136136 self.statusFoundation.events.on (node_configuration_service.SIGNAL_NODE_LOG_LEVEL_UPDATE ) do (a: Args ):
137- let args = NodeLogLevelUpdatedArgs (a)
138- if args.logLevel == chronicles.LogLevel .DEBUG :
139- setLogLevel (chronicles.LogLevel .DEBUG )
140- elif defined (production):
141- setLogLevel (chronicles.LogLevel .INFO )
137+ setLogLevel (chronicles.LogLevel .DEBUG )
142138
143139proc newAppController * (statusFoundation: StatusFoundation ): AppController =
144140 result = AppController ()
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ proc toggleDebug*(self: Controller) =
7575 if (self.isDebugEnabled ()):
7676 logLevel = LogLevel .INFO
7777
78- if (not self.nodeConfigurationService.setLogLevel (logLevel )):
78+ if (not self.nodeConfigurationService.setLogLevel (LogLevel . DEBUG )):
7979 # in the future we may do a call from here to show a popup about this error
8080 error " an error occurred, we couldn't toggle debug level"
8181 return
Original file line number Diff line number Diff line change @@ -84,12 +84,7 @@ proc prepareLogging() =
8484 let logFile = fmt" app_{ formattedDate} .log "
8585 discard output.open (LOGDIR & logFile, fmAppend)
8686
87- let defaultLogLvl = if defined (production): chronicles.LogLevel .INFO else : chronicles.LogLevel .DEBUG
88- # default log level can be overriden by LOG_LEVEL env parameter
89- let logLvl = try : parseEnum [chronicles.LogLevel ](main_constants.LOG_LEVEL )
90- except : defaultLogLvl
91-
92- setLogLevel (logLvl)
87+ setLogLevel (chronicles.LogLevel .DEBUG )
9388
9489proc setupRemoteSignalsHandling () =
9590 # Please note that this must use the `cdecl` calling convention because
You can’t perform that action at this time.
0 commit comments