We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 63868eb commit d2a724eCopy full SHA for d2a724e
launch/launch/logging/__init__.py
@@ -322,7 +322,7 @@ def get_log_file_path(self, file_name='launch.log'):
322
file_name = self.file_name
323
return os.path.join(self.log_dir, file_name)
324
325
- def get_log_file_handler(self, file_name='launch.log'):
+ def get_log_file_handler(self, file_name=None):
326
"""
327
Get the logging handler to a log file.
328
@@ -333,6 +333,8 @@ def get_log_file_handler(self, file_name='launch.log'):
333
:return: the logging handler associated to the file (always the same
334
once constructed).
335
336
+ if file_name is None:
337
+ file_name = self.file_name
338
if file_name not in self.file_handlers:
339
file_path = self.get_log_file_path(file_name)
340
factory = self.log_handler_factory
0 commit comments