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
cd580ac2
Commit
cd580ac2
authored
Jul 09, 2014
by
Christine Lytwynec
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
overriding a few more log levels for acceptance tests
parent
eefa18b3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
13 deletions
+24
-13
cms/envs/acceptance.py
+13
-9
lms/envs/acceptance.py
+11
-4
No files found.
cms/envs/acceptance.py
View file @
cd580ac2
...
...
@@ -24,15 +24,19 @@ import os
def
seed
():
return
os
.
getppid
()
# Suppress error message "Cannot determine primary key of logged in user"
# from track.middleware that gets triggered when using an auto_auth workflow
# This is an ERROR level warning so we need to set the threshold at CRITICAL
logging
.
getLogger
(
'track.middleware'
)
.
setLevel
(
logging
.
CRITICAL
)
# Suppress warning message "Cannot find corresponding link for name: <foo>"
# from edxmako.shortcuts. We have no appropriate pages in the platform to
# use, so these are not set up for TOS and PRIVACY
logging
.
getLogger
(
'edxmako.shortcuts'
)
.
setLevel
(
logging
.
ERROR
)
# Silence noisy logs
LOG_OVERRIDES
=
[
(
'track.middleware'
,
logging
.
CRITICAL
),
(
'codejail.safe_exec'
,
logging
.
ERROR
),
(
'edx.courseware'
,
logging
.
ERROR
),
(
'edxmako.shortcuts'
,
logging
.
ERROR
),
(
'audit'
,
logging
.
ERROR
),
(
'contentstore.views.import_export'
,
logging
.
CRITICAL
),
(
'xmodule.x_module'
,
logging
.
CRITICAL
),
]
for
log_name
,
log_level
in
LOG_OVERRIDES
:
logging
.
getLogger
(
log_name
)
.
setLevel
(
log_level
)
update_module_store_settings
(
MODULESTORE
,
...
...
lms/envs/acceptance.py
View file @
cd580ac2
...
...
@@ -27,10 +27,17 @@ import string
def
seed
():
return
os
.
getppid
()
# Suppress error message "Cannot determine primary key of logged in user"
# from track.middleware that gets triggered when using an auto_auth workflow
# This is an ERROR level warning so we need to set the threshold at CRITICAL
logging
.
getLogger
(
'track.middleware'
)
.
setLevel
(
logging
.
CRITICAL
)
# Silence noisy logs
LOG_OVERRIDES
=
[
(
'track.middleware'
,
logging
.
CRITICAL
),
(
'codejail.safe_exec'
,
logging
.
ERROR
),
(
'edx.courseware'
,
logging
.
ERROR
),
(
'audit'
,
logging
.
ERROR
),
(
'instructor_task.api_helper'
,
logging
.
ERROR
),
]
for
log_name
,
log_level
in
LOG_OVERRIDES
:
logging
.
getLogger
(
log_name
)
.
setLevel
(
log_level
)
update_module_store_settings
(
MODULESTORE
,
...
...
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