Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
d0c17100
Commit
d0c17100
authored
May 18, 2018
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: fixed some minor startup logging issues
parent
6c075247
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
pkg/cmd/grafana-server/server.go
+4
-4
No files found.
pkg/cmd/grafana-server/server.go
View file @
d0c17100
...
...
@@ -15,7 +15,6 @@ import (
"github.com/grafana/grafana/pkg/bus"
"github.com/grafana/grafana/pkg/middleware"
"github.com/grafana/grafana/pkg/registry"
"github.com/grafana/grafana/pkg/services/dashboards"
"golang.org/x/sync/errgroup"
...
...
@@ -75,7 +74,6 @@ func (g *GrafanaServerImpl) Run() error {
serviceGraph
:=
inject
.
Graph
{}
serviceGraph
.
Provide
(
&
inject
.
Object
{
Value
:
bus
.
GetBus
()})
serviceGraph
.
Provide
(
&
inject
.
Object
{
Value
:
g
.
cfg
})
serviceGraph
.
Provide
(
&
inject
.
Object
{
Value
:
dashboards
.
NewProvisioningService
()})
serviceGraph
.
Provide
(
&
inject
.
Object
{
Value
:
api
.
NewRouteRegister
(
middleware
.
RequestMetrics
,
middleware
.
RequestTracing
)})
// self registered services
...
...
@@ -107,8 +105,10 @@ func (g *GrafanaServerImpl) Run() error {
}
// Start background services
for
_
,
descriptor
:=
range
services
{
service
,
ok
:=
descriptor
.
Instance
.
(
registry
.
BackgroundService
)
for
_
,
srv
:=
range
services
{
// variable needed for accessing loop variable in function callback
descriptor
:=
srv
service
,
ok
:=
srv
.
Instance
.
(
registry
.
BackgroundService
)
if
!
ok
{
continue
}
...
...
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