Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
7c39e385
Commit
7c39e385
authored
12 years ago
by
John Jarvis
Browse files
Options
Downloads
Patches
Plain Diff
Defaulting service_variant to a blank string
parent
a6e0fb91
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/lib/logsettings.py
+5
-0
5 additions, 0 deletions
common/lib/logsettings.py
with
5 additions
and
0 deletions
common/lib/logsettings.py
+
5
−
0
View file @
7c39e385
...
...
@@ -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
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment