|
@@ -10,13 +10,11 @@ import (
|
|
|
"path/filepath"
|
|
"path/filepath"
|
|
|
"strings"
|
|
"strings"
|
|
|
|
|
|
|
|
- "gopkg.in/ini.v1"
|
|
|
|
|
-
|
|
|
|
|
"github.com/go-stack/stack"
|
|
"github.com/go-stack/stack"
|
|
|
|
|
+ "github.com/grafana/grafana/pkg/util"
|
|
|
"github.com/inconshreveable/log15"
|
|
"github.com/inconshreveable/log15"
|
|
|
isatty "github.com/mattn/go-isatty"
|
|
isatty "github.com/mattn/go-isatty"
|
|
|
-
|
|
|
|
|
- "github.com/grafana/grafana/pkg/util"
|
|
|
|
|
|
|
+ "gopkg.in/ini.v1"
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
var Root log15.Logger
|
|
var Root log15.Logger
|
|
@@ -88,18 +86,10 @@ func Warn(format string, v ...interface{}) {
|
|
|
Root.Warn(message)
|
|
Root.Warn(message)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func Warn2(message string, v ...interface{}) {
|
|
|
|
|
- Root.Warn(message, v...)
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
func Error(skip int, format string, v ...interface{}) {
|
|
func Error(skip int, format string, v ...interface{}) {
|
|
|
Root.Error(fmt.Sprintf(format, v...))
|
|
Root.Error(fmt.Sprintf(format, v...))
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func Error2(message string, v ...interface{}) {
|
|
|
|
|
- Root.Error(message, v...)
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
func Critical(skip int, format string, v ...interface{}) {
|
|
func Critical(skip int, format string, v ...interface{}) {
|
|
|
Root.Crit(fmt.Sprintf(format, v...))
|
|
Root.Crit(fmt.Sprintf(format, v...))
|
|
|
}
|
|
}
|