Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GraceDB Server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
IGWN Computing and Software
GraceDB
GraceDB Server
Commits
bbaad98f
Commit
bbaad98f
authored
6 years ago
by
Tanner Prestegard
Committed by
GraceDB
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Adding logging to a few functions
parent
772564e1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gracedb/api/v1/main/views.py
+4
-0
4 additions, 0 deletions
gracedb/api/v1/main/views.py
gracedb/core/middleware/proxy.py
+4
-0
4 additions, 0 deletions
gracedb/core/middleware/proxy.py
with
8 additions
and
0 deletions
gracedb/api/v1/main/views.py
+
4
−
0
View file @
bbaad98f
# Needed because our local events and superevents modules (for the API)
# Needed because our local events and superevents modules (for the API)
# shadow the names of the events and superevents apps.
# shadow the names of the events and superevents apps.
from
__future__
import
absolute_import
from
__future__
import
absolute_import
import
logging
from
django.conf
import
settings
from
django.conf
import
settings
from
django.contrib.auth.models
import
Group
as
AuthGroup
from
django.contrib.auth.models
import
Group
as
AuthGroup
...
@@ -20,6 +21,9 @@ from events.view_logic import get_performance_info
...
@@ -20,6 +21,9 @@ from events.view_logic import get_performance_info
from
superevents.models
import
Superevent
from
superevents.models
import
Superevent
from
..superevents.url_templates
import
construct_url_templates
from
..superevents.url_templates
import
construct_url_templates
# Set up logger
logger
=
logging
.
getLogger
(
__name__
)
class
TagList
(
APIView
):
class
TagList
(
APIView
):
"""
Tag List Resource
"""
Tag List Resource
...
...
This diff is collapsed.
Click to expand it.
gracedb/core/middleware/proxy.py
+
4
−
0
View file @
bbaad98f
import
logging
# Set up logger
logger
=
logging
.
getLogger
(
__name__
)
class
XForwardedForMiddleware
(
object
):
class
XForwardedForMiddleware
(
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