Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
G
gracedb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
99
Issues
99
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
1
Merge Requests
1
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lscsoft
gracedb
Commits
a6e7c594
Commit
a6e7c594
authored
May 01, 2019
by
Tanner Prestegard
Committed by
GraceDB
May 02, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add prefix to gunicorn and apache logging
parent
a16127fd
Pipeline
#60154
passed with stages
in 13 minutes and 54 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
config/gunicorn_config.py
config/gunicorn_config.py
+8
-3
docker/apache-config
docker/apache-config
+3
-0
No files found.
config/gunicorn_config.py
View file @
a6e7c594
...
...
@@ -27,14 +27,19 @@ worker_class = 'sync'
#max_requests = 0
#max_requests_jitter = 0
# Logging ---------------------------------------------------------------------
# Access log
accesslog
=
join
(
LOG_DIR
,
"gunicorn_access.log"
)
access_log_format
=
'%(t)s %(h)s %(l)s %(u)s "%(r)s" %(s)s %(b)s "%(f)s" "%(a)s"'
access_log_format
=
(
'GUNICORN | %(h)s %(l)s %(u)s %(t)s '
'"%(r)s" %(s)s %(b)s "%(f)s" "%(a)s"'
)
# Error log
errorlog
=
join
(
LOG_DIR
,
"gunicorn_error.log"
)
loglevel
=
'debug'
capture_output
=
True
#forwarded_allow_ips = '127.0.0.1'
#proxy_allow_ips = '127.0.0.1'
# Override logger class to modify error format
from
gunicorn.glogging
import
Logger
class
CustomLogger
(
Logger
):
error_fmt
=
'GUNICORN | '
+
Logger
.
error_fmt
logger_class
=
CustomLogger
docker/apache-config
View file @
a6e7c594
...
...
@@ -9,6 +9,9 @@ ServerName ${DJANGO_PRIMARY_FQDN}
ServerAdmin cgca-admins@uwm.edu
## Log format
LogFormat "APACHE | %a %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
## Vhost docroot
DocumentRoot "/var/www/html"
...
...
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