mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
removes debug2 logging
This commit is contained in:
@@ -56,10 +56,6 @@ func Debug(format string, v ...interface{}) {
|
|||||||
Root.Debug(message)
|
Root.Debug(message)
|
||||||
}
|
}
|
||||||
|
|
||||||
func Debug2(message string, v ...interface{}) {
|
|
||||||
Root.Debug(message, v...)
|
|
||||||
}
|
|
||||||
|
|
||||||
func Info(format string, v ...interface{}) {
|
func Info(format string, v ...interface{}) {
|
||||||
var message string
|
var message string
|
||||||
if len(v) > 0 {
|
if len(v) > 0 {
|
||||||
@@ -71,10 +67,6 @@ func Info(format string, v ...interface{}) {
|
|||||||
Root.Info(message)
|
Root.Info(message)
|
||||||
}
|
}
|
||||||
|
|
||||||
func Info2(message string, v ...interface{}) {
|
|
||||||
Root.Info(message, v...)
|
|
||||||
}
|
|
||||||
|
|
||||||
func Warn(format string, v ...interface{}) {
|
func Warn(format string, v ...interface{}) {
|
||||||
var message string
|
var message string
|
||||||
if len(v) > 0 {
|
if len(v) > 0 {
|
||||||
|
|||||||
@@ -11,6 +11,10 @@ func init() {
|
|||||||
bus.AddHandler("auth", UpsertUser)
|
bus.AddHandler("auth", UpsertUser)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var (
|
||||||
|
logger = log.New("login.ext_user")
|
||||||
|
)
|
||||||
|
|
||||||
func UpsertUser(cmd *m.UpsertUserCommand) error {
|
func UpsertUser(cmd *m.UpsertUserCommand) error {
|
||||||
extUser := cmd.ExternalUser
|
extUser := cmd.ExternalUser
|
||||||
|
|
||||||
@@ -135,7 +139,7 @@ func updateUser(user *m.User, extUser *m.ExternalUserInfo) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Debug2("Syncing user info", "id", user.Id, "update", updateCmd)
|
logger.Debug("Syncing user info", "id", user.Id, "update", updateCmd)
|
||||||
return bus.Dispatch(updateCmd)
|
return bus.Dispatch(updateCmd)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user