Skip to content

Commit

Permalink
Merge pull request #85 from drunkdream/bugfix/log-file
Browse files Browse the repository at this point in the history
Bugfix/log file
  • Loading branch information
drunkdream authored Jun 11, 2024
2 parents 088ad37 + 5e5361b commit 533ad05
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion turbo_tunnel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""Turbo tunnel
"""

VERSION = "0.18.1"
VERSION = "0.18.2"
BANNER = r"""
_____ _ _____ _
/__ \_ _ _ __| |__ ___/__ \_ _ _ __ _ __ ___| |
Expand Down
4 changes: 2 additions & 2 deletions turbo_tunnel/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def handle_args(args):
if args.log_file:
log_file = os.path.abspath(args.log_file)

handler = logging.StreamHandler()
handler = logging.StreamHandler(sys.stdout)
fmt = "[%(asctime)s][%(levelname)s]%(message)s"
enable_color_output = not args.no_color
if enable_color_output and sys.platform == "win32":
Expand Down Expand Up @@ -236,7 +236,7 @@ def main():
import daemon

# fork must be called before create event loop
daemon.DaemonContext(stderr=open("error.txt", "w")).open()
daemon.DaemonContext(stderr=open("turbo-tunnel.error.log", "w")).open()
elif args.daemon:
utils.win32_daemon()
return 0
Expand Down

0 comments on commit 533ad05

Please sign in to comment.