Skip to content

Commit cd9e1ad

Browse files
committed
Delete log level filter for file logging
1 parent ee9409a commit cd9e1ad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nxc/logger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def log_console_to_file(self, text, *args, **kwargs):
163163
If debug or info logging is not enabled, we still want display/success/fail logged to the file specified,
164164
so we create a custom LogRecord and pass it to all the additional handlers (which will be all the file handlers)
165165
"""
166-
if self.logger.getEffectiveLevel() >= logging.INFO and len(self.logger.handlers): # will be 0 if it's just the console output, so only do this if we actually have file loggers
166+
if len(self.logger.handlers): # will be 0 if it's just the console output, so only do this if we actually have file loggers
167167
try:
168168
for handler in self.logger.handlers:
169169
handler.handle(LogRecord("nxc", 20, "", kwargs, msg=text, args=args, exc_info=None))

0 commit comments

Comments
 (0)