Skip to content

Commit

Permalink
same type of fix as previous
Browse files Browse the repository at this point in the history
  • Loading branch information
calbaker committed Aug 9, 2024
1 parent 46d46ae commit 500fc21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/fastsim/utils/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def without_logging():
finally:
enable_logging(previous_level)

def set_log_filename(filename: str | Path):
def set_log_filename(filename: Union[str, Path]):
handler = logging.FileHandler(filename)
handler.setFormatter(logging.root.handlers[0].formatter)
logging.getLogger("fastsim").addHandler(handler)
Expand Down

0 comments on commit 500fc21

Please sign in to comment.