Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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 JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Chenhao Ma
core
Commits
ebc57bca
Commit
ebc57bca
authored
8 years ago
by
Ryan Sanford
Browse files
Options
Downloads
Patches
Plain Diff
Remove merge conflict content
parent
2efd3fdd
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
api/web/base.py
+0
-4
0 additions, 4 deletions
api/web/base.py
api/web/request.py
+0
-16
0 additions, 16 deletions
api/web/request.py
with
0 additions
and
20 deletions
api/web/base.py
+
0
−
4
View file @
ebc57bca
...
...
@@ -366,17 +366,13 @@ class RequestHandler(webapp2.RequestHandler):
if
k
==
'
group
'
:
context
[
k
][
'
label
'
]
=
v
.
get
(
'
name
'
)
log_map
[
'
context
'
]
=
context
<<<<<<<
Updated
upstream
access_log
.
info
(
json
.
dumps
(
log_map
,
sort_keys
=
True
,
default
=
custom_json_serializer
))
=======
try
:
config
.
log_db
.
access_log
.
insert_one
(
log_map
)
except
Exception
as
e
:
config
.
log
.
exception
(
e
)
self
.
abort
(
500
,
'
Unable to log access.
'
)
>>>>>>>
Stashed
changes
def
dispatch
(
self
):
"""
dispatching and request forwarding
"""
...
...
This diff is collapsed.
Click to expand it.
api/web/request.py
+
0
−
16
View file @
ebc57bca
...
...
@@ -17,22 +17,7 @@ AccessType = util.Enum('AccessType', {
'
user_logout
'
:
'
user_logout
'
})
<<<<<<<
Updated
upstream
access_log
=
logging
.
getLogger
(
'
scitran.access
'
)
formatter
=
logging
.
Formatter
(
'
%(message)s
'
)
try
:
access_log_filename
=
config
.
get_item
(
'
core
'
,
'
access_log_path
'
)
except
ServerSelectionTimeoutError
:
access_log_filename
=
config
.
DEFAULT_CONFIG
[
'
core
'
][
'
access_log_path
'
]
handler
=
logging
.
FileHandler
(
access_log_filename
)
handler
.
setFormatter
(
formatter
)
access_log
.
addHandler
(
handler
)
access_log
.
setLevel
(
logging
.
INFO
)
=======
>>>>>>>
Stashed
changes
class
SciTranRequest
(
Request
):
"""
Extends webob.request.Request
"""
def
__init__
(
self
,
*
args
,
**
kwargs
):
...
...
@@ -83,4 +68,3 @@ def log_access(access_type, cont_kwarg='cont_name', cont_id_kwarg='cid'):
return
result
return
log_user_access_from_request
return
log_access_decorator
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