We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ef0237 commit 92d551dCopy full SHA for 92d551d
server.py
@@ -33,8 +33,11 @@
33
app.config['MAX_CONTENT_LENGTH'] = 15 * 1024 * 1024 # 15 Mb limit
34
recaptcha = ReCaptcha(app)
35
36
-app.config['LOG_FILE'] = 'secure-drop.log'
37
-logging.basicConfig(filename=app.config['LOG_FILE'], level=logging.INFO)
+log_file = os.environ.get('LOG_FILE', '')
+if log_file:
38
+ logging.basicConfig(filename=log_file, level=logging.INFO)
39
+else:
40
+ logging.basicConfig(level=logging.INFO)
41
42
def parse_form(form):
43
text = form['message']
0 commit comments