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
205afd72
Commit
205afd72
authored
May 27, 2016
by
bergquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style(alerting): remove some logging
parent
422234d0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
7 deletions
+0
-7
pkg/services/alerting/dashboard_parser.go
+0
-7
No files found.
pkg/services/alerting/dashboard_parser.go
View file @
205afd72
...
...
@@ -3,7 +3,6 @@ package alerting
import
(
"github.com/grafana/grafana/pkg/bus"
"github.com/grafana/grafana/pkg/components/simplejson"
"github.com/grafana/grafana/pkg/log"
m
"github.com/grafana/grafana/pkg/models"
)
...
...
@@ -46,18 +45,12 @@ func ParseAlertsFromDashboard(cmd *m.SaveDashboardCommand) []m.AlertRule {
}
}
log
.
Info
(
"datasource is %s"
,
panel
.
Get
(
"datasource"
)
.
MustString
())
log
.
Info
(
"is datasource null? %v"
,
panel
.
Get
(
"datasource"
)
.
MustString
()
==
""
)
if
panel
.
Get
(
"datasource"
)
.
MustString
()
==
""
{
query
:=
&
m
.
GetDataSourcesQuery
{
OrgId
:
cmd
.
OrgId
}
if
err
:=
bus
.
Dispatch
(
query
);
err
==
nil
{
for
_
,
ds
:=
range
query
.
Result
{
log
.
Info
(
"found datasource %s"
,
ds
.
Name
)
if
ds
.
IsDefault
{
alert
.
DatasourceId
=
ds
.
Id
log
.
Info
(
"setting default datasource! %d"
,
ds
.
Id
)
}
}
}
...
...
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