Skip to content

Commit b4a665d

Browse files
committed
Expand logging output path. Closes #133
1 parent fd10693 commit b4a665d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

beaver/utils.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import logging
66
import platform
77
import re
8+
import os
89
import sys
910

1011
import beaver
@@ -68,6 +69,9 @@ def setup_custom_logger(name, args=None, output=None, formatter=None, debug=None
6869
if output is None and has_args and args.daemonize:
6970
output = args.output
7071

72+
if output:
73+
output = os.path.realpath(output)
74+
7175
if output is not None:
7276
file_handler = logging.FileHandler(output)
7377
if formatter is not False:

0 commit comments

Comments
 (0)