SystemRage / py-kms

KMS Server Emulator written in Python
The Unlicense
2.04k stars 618 forks source link

pykms defaults to logging to a path relative to the installed libraries #64

Closed flokli closed 4 years ago

flokli commented 4 years ago

When installing pykms via regular distribution packaging (and not via pip as a regular user, or just running from a git checkout) the location pykms is installed to often is read-only for the user running pykms.

Yet, pykms defaults to logging to

os.path.dirname(os.path.abspath( __file__ )) + "/pykms_logserver.log"

Could this default be changed to be relative to the working directory, or could you just default to log to stdout?

This seems to be quite common for all docker-based installations, and installations using the system journal as well.