We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0986060 commit 28fc74dCopy full SHA for 28fc74d
src/vuegen/report_generator.py
@@ -10,7 +10,7 @@
10
11
def get_report(
12
report_type: str,
13
- logger: logging.Logger = get_logger("report"),
+ logger: logging.Logger = None,
14
config_path: str = None,
15
dir_path: str = None,
16
streamlit_autorun: bool = False,
@@ -36,7 +36,11 @@ def get_report(
36
ValueError
37
If neither 'config_path' nor 'directory' is provided.
38
"""
39
- # Initialize the config manager object
+ # Initialize logger only if it's not provided
40
+ if logger is None:
41
+ logger = get_logger("report")
42
+
43
+ # Create the config manager object
44
config_manager = ConfigManager(logger)
45
46
if dir_path:
0 commit comments