Skip to content

Commit

Permalink
Log to current directory to avoid logfiles produced by other users
Browse files Browse the repository at this point in the history
Fixes #109
  • Loading branch information
Simon Guest committed Jan 30, 2025
1 parent 147c19d commit 71e40fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion redun/console/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
NULL = object()
logger = logging.getLogger("redun.console")
logger.setLevel(logging.INFO)
logger.addHandler(logging.FileHandler("/tmp/redun.log"))
# log to current directory to avoid logfiles produced by other users
logger.addHandler(logging.FileHandler("redun.log"))


def log_write(*args: Any) -> None:
Expand Down

0 comments on commit 71e40fe

Please sign in to comment.