Skip to content

Commit

Permalink
Allow specifying log directory as environment var
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Uiterwijk <[email protected]>
  • Loading branch information
puiterwijk authored and mpeters committed Feb 24, 2021
1 parent 850e8b4 commit 37a6b6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keylime/keylime_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def log_http_response(logger, loglevel, response_body):
LOG_TO_FILE = ['registrar', 'provider_registrar', 'cloudverifier']
# not clear that this works right. console logging may not work
LOG_TO_STREAM = ['tenant_webapp']
LOGDIR = '/var/log/keylime'
LOGDIR = os.getenv('KEYLIME_LOGDIR', '/var/log/keylime')
if not config.REQUIRE_ROOT:
LOGSTREAM = './keylime-stream.log'
else:
Expand Down

0 comments on commit 37a6b6b

Please sign in to comment.