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
11c4967b
Commit
11c4967b
authored
Jan 31, 2019
by
bergquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changes some info logging to debug
parent
1e0de188
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
pkg/services/auth/auth_token.go
+1
-1
pkg/services/provisioning/notifiers/alert_notifications.go
+2
-2
No files found.
pkg/services/auth/auth_token.go
View file @
11c4967b
...
...
@@ -151,7 +151,7 @@ func (s *UserAuthTokenServiceImpl) CreateToken(userId int64, clientIP, userAgent
func
(
s
*
UserAuthTokenServiceImpl
)
LookupToken
(
unhashedToken
string
)
(
*
userAuthToken
,
error
)
{
hashedToken
:=
hashToken
(
unhashedToken
)
if
setting
.
Env
==
setting
.
DEV
{
s
.
log
.
Info
(
"looking up token"
,
"unhashed"
,
unhashedToken
,
"hashed"
,
hashedToken
)
s
.
log
.
Debug
(
"looking up token"
,
"unhashed"
,
unhashedToken
,
"hashed"
,
hashedToken
)
}
expireBefore
:=
getTime
()
.
Add
(
time
.
Duration
(
-
86400
*
s
.
Cfg
.
LoginCookieMaxDays
)
*
time
.
Second
)
.
Unix
()
...
...
pkg/services/provisioning/notifiers/alert_notifications.go
View file @
11c4967b
...
...
@@ -92,7 +92,7 @@ func (dc *NotificationProvisioner) mergeNotifications(notificationToMerge []*not
}
if
cmd
.
Result
==
nil
{
dc
.
log
.
Info
(
"Inserting alert notification from configuration
"
,
"name"
,
notification
.
Name
,
"uid"
,
notification
.
Uid
)
dc
.
log
.
Debug
(
"inserting alert notification from configuration
"
,
"name"
,
notification
.
Name
,
"uid"
,
notification
.
Uid
)
insertCmd
:=
&
models
.
CreateAlertNotificationCommand
{
Uid
:
notification
.
Uid
,
Name
:
notification
.
Name
,
...
...
@@ -109,7 +109,7 @@ func (dc *NotificationProvisioner) mergeNotifications(notificationToMerge []*not
return
err
}
}
else
{
dc
.
log
.
Info
(
"U
pdating alert notification from configuration"
,
"name"
,
notification
.
Name
)
dc
.
log
.
Debug
(
"u
pdating alert notification from configuration"
,
"name"
,
notification
.
Name
)
updateCmd
:=
&
models
.
UpdateAlertNotificationWithUidCommand
{
Uid
:
notification
.
Uid
,
Name
:
notification
.
Name
,
...
...
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