File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -322,7 +322,7 @@ def get_log_file_path(self, file_name='launch.log'):
322322 file_name = self .file_name
323323 return os .path .join (self .log_dir , file_name )
324324
325- def get_log_file_handler (self , file_name = 'launch.log' ):
325+ def get_log_file_handler (self , file_name = None ):
326326 """
327327 Get the logging handler to a log file.
328328
@@ -333,6 +333,8 @@ def get_log_file_handler(self, file_name='launch.log'):
333333 :return: the logging handler associated to the file (always the same
334334 once constructed).
335335 """
336+ if file_name is None :
337+ file_name = self .file_name
336338 if file_name not in self .file_handlers :
337339 file_path = self .get_log_file_path (file_name )
338340 factory = self .log_handler_factory
You can’t perform that action at this time.
0 commit comments