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
0df9fb35
Commit
0df9fb35
authored
Oct 07, 2016
by
Nimisha Asthagiri
Committed by
GitHub
Oct 07, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #13692 from edx/common_cleanup/monitoring
Move monitoring from common to openedx/core
parents
3b304029
c8bca627
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
17 additions
and
8 deletions
+17
-8
cms/envs/common.py
+1
-1
common/djangoapps/monitoring/startup.py
+0
-4
lms/envs/common.py
+1
-1
openedx/core/djangoapps/monitoring/__init__.py
+0
-0
openedx/core/djangoapps/monitoring/exceptions.py
+8
-1
openedx/core/djangoapps/monitoring/signals.py
+1
-1
openedx/core/djangoapps/monitoring/startup.py
+6
-0
No files found.
cms/envs/common.py
View file @
0df9fb35
...
...
@@ -866,7 +866,7 @@ INSTALLED_APPS = (
'embargo'
,
# Monitoring signals
'monitoring'
,
'
openedx.core.djangoapps.
monitoring'
,
# Course action state
'course_action_state'
,
...
...
common/djangoapps/monitoring/startup.py
deleted
100644 → 0
View file @
3b304029
# Register signal handlers
# pylint: disable=unused-import
import
signals
import
exceptions
lms/envs/common.py
View file @
0df9fb35
...
...
@@ -2008,7 +2008,7 @@ INSTALLED_APPS = (
'embargo'
,
# Monitoring functionality
'monitoring'
,
'
openedx.core.djangoapps.
monitoring'
,
# Course action state
'course_action_state'
,
...
...
common
/djangoapps/monitoring/__init__.py
→
openedx/core
/djangoapps/monitoring/__init__.py
View file @
0df9fb35
File moved
common
/djangoapps/monitoring/exceptions.py
→
openedx/core
/djangoapps/monitoring/exceptions.py
View file @
0df9fb35
"""
Signal handler for exceptions.
"""
from
django.core.signals
import
got_request_exception
from
django.dispatch
import
receiver
import
logging
@receiver
(
got_request_exception
)
def
record_request_exception
(
sender
,
**
kwargs
):
def
record_request_exception
(
sender
,
**
kwargs
):
# pylint: disable=unused-argument
"""
Logs the stack trace whenever an exception
occurs in processing a request.
"""
logging
.
exception
(
"Uncaught exception from {sender}"
.
format
(
sender
=
sender
))
common
/djangoapps/monitoring/signals.py
→
openedx/core
/djangoapps/monitoring/signals.py
View file @
0df9fb35
...
...
@@ -13,7 +13,7 @@ from django.dispatch import receiver
import
dogstats_wrapper
as
dog_stats_api
def
_database_tags
(
action
,
sender
,
kwargs
):
def
_database_tags
(
action
,
sender
,
kwargs
):
# pylint: disable=unused-argument
"""
Return a tags for the sender and database used in django.db.models signals.
...
...
openedx/core/djangoapps/monitoring/startup.py
0 → 100644
View file @
0df9fb35
"""
Registers signal handlers at startup.
"""
# pylint: disable=unused-import
import
openedx.core.djangoapps.monitoring.signals
import
openedx.core.djangoapps.monitoring.exceptions
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