diff options
author | Andy Doan <andy.doan@linaro.org> | 2016-01-28 15:29:34 -0600 |
---|---|---|
committer | Andy Doan <andy.doan+gerrit@linaro.org> | 2016-01-29 19:46:04 +0000 |
commit | 30fb747601f1bbf7ee2b26065432dc3f45e38dc4 (patch) | |
tree | 18c77cbbacf7bf3deb9249c1764df09c19998bb3 /per-service | |
parent | d97ec66198f78c97da70f2c8a8ecce727fd22dcc (diff) |
git: include request duration in apache logs
This adds the duration of a request in microseconds to our apache log.
This will provide context to allow us to understand how long git-fetch
operations take.
Change-Id: I60c0bc02f90d260e0496a4fd0f3ba6c0a2c928bb
Reviewed-on: https://review.linaro.org/10190
Reviewed-by: Ben Copeland <ben.copeland@linaro.org>
Diffstat (limited to 'per-service')
-rw-r--r-- | per-service/git-servers/files/git.linaro.org.conf | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/per-service/git-servers/files/git.linaro.org.conf b/per-service/git-servers/files/git.linaro.org.conf index 1fd79240..79579745 100644 --- a/per-service/git-servers/files/git.linaro.org.conf +++ b/per-service/git-servers/files/git.linaro.org.conf @@ -11,7 +11,7 @@ SuexecUserGroup {{ git_user }} {{ git_user }} ServerAlias git-geo.linaro.org ServerAdmin webmaster@linaro.org - CustomLog ${APACHE_LOG_DIR}/{{ git_host }}-access.log combined + CustomLog ${APACHE_LOG_DIR}/{{ git_host }}-access.log "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %D microseconds" ErrorLog ${APACHE_LOG_DIR}/{{ git_host }}-error.log DocumentRoot {{ apache_root }}/{{ git_host }} @@ -148,7 +148,7 @@ SuexecUserGroup {{ git_user }} {{ git_user }} SSLCertificateKeyFile {{ssl_key}} SSLCACertificateFile {{ssl_ca}} - CustomLog ${APACHE_LOG_DIR}/{{ git_host }}-access.log combined + CustomLog ${APACHE_LOG_DIR}/{{ git_host }}-access.log "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %D microseconds" ErrorLog ${APACHE_LOG_DIR}/{{ git_host }}-error.log DocumentRoot {{ apache_root }}/{{ git_host }} |