Skip to content

Commit bbd2dd9

Browse files
change logpath
1 parent 7eb64ea commit bbd2dd9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

causal_testing/json_front/json_class.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def add_modelling_assumptions(self, estimation_model: Estimator):
218218
@staticmethod
219219
def setup_logger(log_path: str):
220220
setup_log = logging.getLogger(__name__)
221-
fh = logging.FileHandler(Path(log_path) / "json_frontend.log")
221+
fh = logging.FileHandler(Path(log_path))
222222
setup_log.addHandler(fh)
223223

224224
@staticmethod
@@ -232,7 +232,8 @@ def get_args() -> argparse.Namespace:
232232
parser.add_argument(
233233
"-f", help="if included, the script will stop if a test fails", action="store_true")
234234
parser.add_argument(
235-
"--log_path", help="Specify a directory to change the location of the log file", default=".")
235+
"--log_path", help="Specify a directory to change the location of the log file",
236+
default="./json_frontend.log")
236237
parser.add_argument(
237238
"--data_path", help="Specify path to file containing runtime data", required=True
238239
)

0 commit comments

Comments
 (0)