-
Notifications
You must be signed in to change notification settings - Fork 10
Closed
Description
If, for example, you have installed the package as root and run as another user, you can't start up anything using this code b/c it is trying to log to a subfolder of the package install directory.
Would be good to eliminate this or have it fail gracefully.
dj-dna-streams-python/dnaStreaming/__init__.py
Lines 15 to 21 in cd1535b
| print("Will log to: {}".format(log_path)) | |
| if not os.path.exists(log_path): | |
| os.mkdir(log_path) | |
| fileHandler = logging.FileHandler("{0}/{1}.log".format(log_path, 'dj-dna-streaming-python')) |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels