Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
723f47f4
Commit
723f47f4
authored
Feb 04, 2013
by
jarv
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1412 from MITx/feature/jarv/service-variant-default
Defaulting service_variant to a blank string
parents
a6e0fb91
7c39e385
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
common/lib/logsettings.py
+5
-0
No files found.
common/lib/logsettings.py
View file @
723f47f4
...
...
@@ -40,6 +40,11 @@ def get_logger_config(log_dir,
if
console_loglevel
is
None
or
console_loglevel
not
in
LOG_LEVELS
:
console_loglevel
=
'DEBUG'
if
debug
else
'INFO'
if
service_variant
is
None
:
# default to a blank string so that if SERVICE_VARIANT is not
# set we will not log to a sub directory
service_variant
=
''
hostname
=
platform
.
node
()
.
split
(
"."
)[
0
]
syslog_format
=
(
"[service_variant={service_variant}]"
"[
%(name)
s][env:{logging_env}]
%(levelname)
s "
...
...
Write
Preview
Markdown
is supported
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