mirror of
https://github.com/kovetskiy/mark.git
synced 2025-04-23 21:32:41 +08:00
fix logging
This commit is contained in:
parent
ecee64f778
commit
3cd9504a04
@ -3,6 +3,7 @@ package log
|
||||
import (
|
||||
"github.com/kovetskiy/lorg"
|
||||
"github.com/reconquest/cog"
|
||||
"github.com/reconquest/karma-go"
|
||||
)
|
||||
|
||||
var (
|
||||
@ -28,7 +29,7 @@ func Init(debug, trace bool) {
|
||||
}
|
||||
|
||||
func Fatalf(
|
||||
reason interface{},
|
||||
reason error,
|
||||
message string,
|
||||
args ...interface{},
|
||||
) {
|
||||
@ -36,7 +37,7 @@ func Fatalf(
|
||||
}
|
||||
|
||||
func Errorf(
|
||||
reason interface{},
|
||||
reason error,
|
||||
message string,
|
||||
args ...interface{},
|
||||
) {
|
||||
@ -44,7 +45,7 @@ func Errorf(
|
||||
}
|
||||
|
||||
func Warningf(
|
||||
reason interface{},
|
||||
reason error,
|
||||
message string,
|
||||
args ...interface{},
|
||||
) {
|
||||
@ -52,7 +53,7 @@ func Warningf(
|
||||
}
|
||||
|
||||
func Infof(
|
||||
context interface{},
|
||||
context *karma.Context,
|
||||
message string,
|
||||
args ...interface{},
|
||||
) {
|
||||
@ -60,7 +61,7 @@ func Infof(
|
||||
}
|
||||
|
||||
func Debugf(
|
||||
context interface{},
|
||||
context *karma.Context,
|
||||
message string,
|
||||
args ...interface{},
|
||||
) {
|
||||
@ -68,7 +69,7 @@ func Debugf(
|
||||
}
|
||||
|
||||
func Tracef(
|
||||
context interface{},
|
||||
context *karma.Context,
|
||||
message string,
|
||||
args ...interface{},
|
||||
) {
|
||||
|
@ -57,6 +57,7 @@ func EnsureAncestry(
|
||||
}
|
||||
|
||||
log.Debugf(
|
||||
nil,
|
||||
"empty pages under %q to be created: %s",
|
||||
parent.Title,
|
||||
strings.Join(rest, ` > `),
|
||||
|
@ -48,6 +48,7 @@ func ResolvePage(
|
||||
path = append(path, meta.Title)
|
||||
|
||||
log.Debugf(
|
||||
nil,
|
||||
"resolving page path: ??? > %s",
|
||||
strings.Join(path, ` > `),
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user