diff options
author | Lukas Erlacher <erlacher@in.tum.de> | 2016-10-29 17:10:41 +0200 |
---|---|---|
committer | Lukas Erlacher <erlacher@in.tum.de> | 2016-11-03 22:02:47 +0100 |
commit | e900e53aa530ce15a73a4bf88cafa304999a99e9 (patch) | |
tree | e1bcb69438728a437e11dfdc054173860144fcab /doc/administration/logs.md | |
parent | cc83039a7044cf2c51c9909a11fd6dd422f88b8c (diff) | |
download | gitlab-ce-e900e53aa530ce15a73a4bf88cafa304999a99e9.tar.gz |
Show log corresponding to env in admin/logs
No matter which environment Gitlab was running as, the admin/logs view
always showed production.log. This commit selects the logfile based
on Rails.env.
- Rename ProductionLogger to EnvironmentLogger
- Make EnvironmentLogger logfile depend on env
- Update spinach test for log tabs
Diffstat (limited to 'doc/administration/logs.md')
-rw-r--r-- | doc/administration/logs.md | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/administration/logs.md b/doc/administration/logs.md index 737b39db16c..d757a3c2a66 100644 --- a/doc/administration/logs.md +++ b/doc/administration/logs.md @@ -13,7 +13,8 @@ This guide talks about how to read and use these system log files. This file lives in `/var/log/gitlab/gitlab-rails/production.log` for omnibus package or in `/home/git/gitlab/log/production.log` for -installations from source. +installations from source. (When Gitlab is running in an environment +other than production, the corresponding logfile is shown here.) It contains information about all performed requests. You can see the URL and type of request, IP address and what exactly parts of code were |