Skip to content

Commit

Permalink
fix logging path in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
boldandbrad committed Feb 19, 2024
1 parent 0fbd446 commit 9d08ee8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/euchre/util/log_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ def logger_init() -> None:
"""Configure loguru logger."""
logger.remove() # remove stdout/stderr logging since this is a CLI

is_travis = "TRAVIS" in os.environ # running in travis ci
is_ci = "CI" in os.environ # running in travis ci
usrname = getpass.getuser()

if platform.system() == "Linux" and not is_travis:
if platform.system() == "Linux" and not is_ci:
log_path = "/var/log/euchre-cli/euchre.log"
elif platform.system() == "Darwin" and not is_travis:
elif platform.system() == "Darwin" and not is_ci:
log_path = f"/Users/{usrname}/Library/Logs/euchre-cli/euchre.log"
elif platform.system() == "Windows" and not is_travis:
elif platform.system() == "Windows" and not is_ci:
log_path = f"C:\\Users\\{usrname}\\AppData\\local\\euchre-cli\\euchre.log"
else:
log_path = "euchre.log"
Expand Down

0 comments on commit 9d08ee8

Please sign in to comment.