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
2c500a2b
Commit
2c500a2b
authored
Apr 10, 2014
by
Jay Zoldak
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3289 from edx/zoldak/quiet-acceptance-test-logs
Quiet some noisy loggers for lettuce acceptance tests
parents
8059547e
579e66fe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletions
+15
-1
cms/envs/acceptance.py
+10
-1
lms/envs/acceptance.py
+5
-0
No files found.
cms/envs/acceptance.py
View file @
2c500a2b
...
...
@@ -19,12 +19,21 @@ import logging
logging
.
basicConfig
(
filename
=
TEST_ROOT
/
"log"
/
"cms_acceptance.log"
,
level
=
logging
.
ERROR
)
import
os
from
random
import
choice
,
randint
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
)
DOC_STORE_CONFIG
=
{
'host'
:
'localhost'
,
'db'
:
'acceptance_xmodule'
,
...
...
lms/envs/acceptance.py
View file @
2c500a2b
...
...
@@ -27,6 +27,11 @@ 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
)
# Use the mongo store for acceptance tests
DOC_STORE_CONFIG
=
{
'host'
:
'localhost'
,
...
...
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