This website requires JavaScript.
Explore
Help
Sign in
kotovalexarian-likes-gitlab
/
gitlab-org--gitlab-foss
Watch
1
Star
0
Fork
You've already forked gitlab-org--gitlab-foss
0
Code
Releases
Activity
e3cb61985d
gitlab-org--gitlab-foss
/
lib
/
gitlab
/
environment_logger.rb
8 lines
120 B
Ruby
Raw
Normal View
History
Unescape
Escape
Dry admin logs.
2014-10-04 11:09:06 -04:00
module
Gitlab
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
2016-10-29 11:10:41 -04:00
class
EnvironmentLogger
<
Gitlab
::
Logger
Dry admin logs.
2014-10-04 11:09:06 -04:00
def
self
.
file_name_noext
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
2016-10-29 11:10:41 -04:00
Rails
.
env
Dry admin logs.
2014-10-04 11:09:06 -04:00
end
end
end
Copy permalink