BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
90dfae93
Commit
90dfae93
authored
Nov 04, 2016
by
Sean McGivern
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '23979-show-environment-log' into 'master'
Show log corresponding to env in admin/logs Closes #23979 See merge request !7191
parents
1a08981f
e900e53a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
5 deletions
+7
-5
CHANGELOG.md
CHANGELOG.md
+1
-0
show.html.haml
app/views/admin/logs/show.html.haml
+1
-1
logs.md
doc/administration/logs.md
+2
-1
logs.rb
features/steps/admin/logs.rb
+1
-1
environment_logger.rb
lib/gitlab/environment_logger.rb
+2
-2
No files found.
CHANGELOG.md
View file @
90dfae93
...
...
@@ -4,6 +4,7 @@ entry.
## 8.14.0 (2016-11-22)
-
Show correct environment log in admin/logs (@duk3luk3 !7191)
-
Fix Milestone dropdown not stay selected for
`Upcoming`
and
`No Milestone`
option !7117
-
Backups do not fail anymore when using tar on annex and custom_hooks only. !5814
-
Adds user project membership expired event to clarify why user was removed (Callum Dryden)
...
...
app/views/admin/logs/show.html.haml
View file @
90dfae93
-
@no_container
=
true
-
page_title
"Logs"
-
loggers
=
[
Gitlab
::
GitLogger
,
Gitlab
::
AppLogger
,
Gitlab
::
Production
Logger
,
Gitlab
::
SidekiqLogger
,
Gitlab
::
Environment
Logger
,
Gitlab
::
SidekiqLogger
,
Gitlab
::
RepositoryCheckLogger
]
=
render
'admin/background_jobs/head'
...
...
doc/administration/logs.md
View file @
90dfae93
...
...
@@ -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
...
...
features/steps/admin/logs.rb
View file @
90dfae93
...
...
@@ -4,7 +4,7 @@ class Spinach::Features::AdminLogs < Spinach::FeatureSteps
include
SharedAdmin
step
'I should see tabs with available logs'
do
expect
(
page
).
to
have_content
'
production
.log'
expect
(
page
).
to
have_content
'
test
.log'
expect
(
page
).
to
have_content
'githost.log'
expect
(
page
).
to
have_content
'application.log'
end
...
...
lib/gitlab/
production
_logger.rb
→
lib/gitlab/
environment
_logger.rb
View file @
90dfae93
module
Gitlab
class
Production
Logger
<
Gitlab
::
Logger
class
Environment
Logger
<
Gitlab
::
Logger
def
self
.
file_name_noext
'production'
Rails
.
env
end
end
end
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