diff --git a/pkg/log/log.go b/pkg/log/log.go index ca6173c..a34229c 100644 --- a/pkg/log/log.go +++ b/pkg/log/log.go @@ -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{}, ) { diff --git a/pkg/mark/ancestry.go b/pkg/mark/ancestry.go index 8165614..3b01bae 100644 --- a/pkg/mark/ancestry.go +++ b/pkg/mark/ancestry.go @@ -57,6 +57,7 @@ func EnsureAncestry( } log.Debugf( + nil, "empty pages under %q to be created: %s", parent.Title, strings.Join(rest, ` > `), diff --git a/pkg/mark/mark.go b/pkg/mark/mark.go index c438a18..92e7171 100644 --- a/pkg/mark/mark.go +++ b/pkg/mark/mark.go @@ -48,6 +48,7 @@ func ResolvePage( path = append(path, meta.Title) log.Debugf( + nil, "resolving page path: ??? > %s", strings.Join(path, ` > `), )