Skip to content

Permissions issue b/c of logging to python package folder #27

@cwhatley

Description

@cwhatley

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.

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'))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions