Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
juga
sbws
Commits
53a1bf8b
Commit
53a1bf8b
authored
Jul 19, 2018
by
Matt Traudt
Committed by
juga
Jul 21, 2018
Browse files
Fix line length
parent
99e3ee0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
sbws/util/config.py
View file @
53a1bf8b
...
...
@@ -132,7 +132,8 @@ def configure_logging(args, conf):
# And the forth is the number of backups to keep
num_backups
=
conf
.
getint
(
'logging'
,
'to_file_num_backups'
)
# Now store those things as a string in the config. So dumb.
conf
[
'handler_to_file'
][
'args'
]
=
str
((
fname
,
mode
,
max_bytes
,
num_backups
))
conf
[
'handler_to_file'
][
'args'
]
=
\
str
((
fname
,
mode
,
max_bytes
,
num_backups
))
# Set some stuff that needs config parser's interpolation
conf
[
'formatter_to_file'
][
'format'
]
=
conf
[
'logging'
][
'to_file_format'
]
conf
[
'formatter_to_stdout'
][
'format'
]
=
conf
[
'logging'
][
'to_stdout_format'
]
...
...
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