Skip to content

Commit

Permalink
update logger
Browse files Browse the repository at this point in the history
  • Loading branch information
jethror1 committed Oct 10, 2024
1 parent 10d26be commit 92bb763
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions s3_upload/utils/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ def get_console_handler():


def set_file_handler(logger, log_file) -> None:
print(log_file)
check_write_permission_to_log_dir(Path(log_file).parent)

file_handler = TimedRotatingFileHandler(
Expand Down Expand Up @@ -57,6 +58,8 @@ def check_write_permission_to_log_dir(log_dir) -> None:
Raised if path supplied is not writable
"""
while log_dir:
print("foo")
print(log_dir)
if not os.path.exists(log_dir):
log_dir = Path(log_dir).parent
continue
Expand Down

0 comments on commit 92bb763

Please sign in to comment.