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
bc6d7980
Commit
bc6d7980
authored
7 years ago
by
Eric Fischer
Browse files
Options
Downloads
Patches
Plain Diff
Revert "Merge pull request #15593 from edx/efischer/edu-274_logging"
This reverts commit
2d6b477e
, reversing changes made to
7799c4ad
.
parent
fc11bdd7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/lib/xmodule/xmodule/modulestore/__init__.py
+1
-14
1 addition, 14 deletions
common/lib/xmodule/xmodule/modulestore/__init__.py
with
1 addition
and
14 deletions
common/lib/xmodule/xmodule/modulestore/__init__.py
+
1
−
14
View file @
bc6d7980
...
...
@@ -7,7 +7,6 @@ import logging
import
re
import
json
import
datetime
import
traceback
from
pytz
import
UTC
from
collections
import
defaultdict
...
...
@@ -158,19 +157,7 @@ class ActiveBulkThread(threading.local):
"""
def
__init__
(
self
,
bulk_ops_record_type
,
**
kwargs
):
super
(
ActiveBulkThread
,
self
).
__init__
(
**
kwargs
)
self
.
_records
=
defaultdict
(
bulk_ops_record_type
)
self
.
CMS_LEAK_DEBUG_GLOBAL
=
True
# only log once per process
@property
def
records
(
self
):
if
self
.
CMS_LEAK_DEBUG_GLOBAL
and
len
(
self
.
_records
)
>
2000
:
# arbitrary limit, we peak around ~2750 on edx.org
log
.
info
(
"
EDUCATOR-768: The memory leak issue may be in progress. How we got here:
\n
{}
"
.
format
(
""
.
join
(
traceback
.
format_stack
())
)
)
self
.
CMS_LEAK_DEBUG_GLOBAL
=
False
return
self
.
_records
self
.
records
=
defaultdict
(
bulk_ops_record_type
)
class
BulkOperationsMixin
(
object
):
...
...
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