Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
David Seaward
Keel - LDH Middleware
Commits
b91aa5e4
Commit
b91aa5e4
authored
Oct 16, 2017
by
David Seaward
Browse files
setup logging suitable for uwsgi
parent
353b63c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
middleware/settings.py
View file @
b91aa5e4
...
...
@@ -156,3 +156,26 @@ OVPN_HOSTNAME = config("OVPN_HOSTNAME")
OVPN_PORT
=
config
(
"OVPN_PORT"
,
cast
=
int
)
OVPN_USERNAME
=
config
(
"OVPN_USERNAME"
)
OVPN_FILEPATH
=
config
(
"OVPN_FILEPATH"
)
#
# LOGGING
#
LOGGING
=
{
'version'
:
1
,
'disable_existing_loggers'
:
False
,
'handlers'
:
{
'console'
:
{
'level'
:
'DEBUG'
,
'filters'
:
None
,
'class'
:
'logging.StreamHandler'
,
},
},
'loggers'
:
{
''
:
{
'handlers'
:
[
'console'
],
'level'
:
'DEBUG'
,
'propagate'
:
True
,
},
},
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment