Skip to content

Commit 46082df

Browse files
provide default name for log file in launch service constructor
Signed-off-by: Tanishq Chaudhary <[email protected]>
1 parent 7006931 commit 46082df

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

launch/launch/launch_service.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def __init__(
5656
argv: Optional[Iterable[Text]] = None,
5757
noninteractive: bool = False,
5858
debug: bool = False,
59-
log_file_name: Optional[Text] = None
59+
log_file_name = 'launch'
6060
) -> None:
6161
"""
6262
Create a LaunchService.
@@ -69,8 +69,6 @@ def __init__(
6969
# Setup logging and debugging.
7070
launch.logging.launch_config.level = logging.DEBUG if debug else logging.INFO
7171
self._log_file_name = log_file_name
72-
if self._log_file_name is None:
73-
self._log_file_name = 'launch'
7472
# Ensure the log file name ends with `.log`
7573
if not self._log_file_name.endswith('.log'):
7674
self._log_file_name += '.log'

0 commit comments

Comments
 (0)