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
216e9969
Commit
216e9969
authored
Mar 02, 2012
by
Bridger Maxwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tracking now logs to a file including the pid instead of syslog
--HG-- branch : bridger-dev
parent
4b6681b3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
settings.py
+7
-3
No files found.
settings.py
View file @
216e9969
...
...
@@ -174,6 +174,7 @@ execfile(os.path.join(BASE_DIR, "settings.py"))
pid
=
os
.
getpid
()
hostname
=
platform
.
node
()
.
split
(
"."
)[
0
]
SYSLOG_ADDRESS
=
(
'syslog.m.i4x.org'
,
514
)
LOGGING_FILENAME
=
'trackinglog-'
+
str
(
pid
)
handlers
=
[
'console'
]
if
not
DEBUG
:
...
...
@@ -213,6 +214,11 @@ LOGGING = {
'address'
:
SYSLOG_ADDRESS
,
'formatter'
:
'syslog_format'
,
},
'filelogger'
:
{
'level'
:
'INFO'
,
'class'
:
'logging.FileHandler'
,
'filename'
:
LOGGING_FILENAME
,
},
'mail_admins'
:
{
'level'
:
'ERROR'
,
'class'
:
'django.utils.log.AdminEmailHandler'
,
...
...
@@ -225,7 +231,7 @@ LOGGING = {
'level'
:
'INFO'
},
'tracking'
:
{
'handlers'
:
[]
if
DEBUG
else
[
'
sys
logger'
],
# handlers,
'handlers'
:
[]
if
DEBUG
else
[
'
file
logger'
],
# handlers,
'level'
:
'DEBUG'
,
'propagate'
:
False
,
},
...
...
@@ -242,8 +248,6 @@ LOGGING = {
}
}
if
PERFSTATS
:
MIDDLEWARE_CLASSES
=
(
'perfstats.middleware.ProfileMiddleware'
,)
+
MIDDLEWARE_CLASSES
...
...
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