-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
张悦shadow
committed
Jul 28, 2015
1 parent
e1becb4
commit 1464166
Showing
3 changed files
with
22 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# -*- coding: utf-8 -*- | ||
# | ||
# Copyright @ 2014 OPS, Qunar Inc. (qunar.com) | ||
# | ||
# Author: zhen.pei <[email protected]> | ||
# | ||
|
||
from gunicorn import glogging | ||
|
||
|
||
class GunicornLogger(glogging.Logger): | ||
|
||
def access(self, resp, req, environ, request_time): | ||
# ignore healthcheck | ||
if environ.get('RAW_URI') == '/healthcheck.html': | ||
return | ||
super(GunicornLogger, self).access(resp, req, environ, request_time) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
qg.core==0.1.5 | ||
oslo.config==1.12.0 | ||
qg.core==0.1.6 | ||
oslo.config>=2.0.0 | ||
Flask==0.10.1 |