Signed-off-by: Giulio <giuliocalzolari@users.noreply.github.com>
pull/13281/head
Giulio 4 months ago
parent 057528636c
commit 39799adfb2

@ -22,6 +22,7 @@ import (
"log"
"os"
"strings"
"time"
"github.com/spf13/cobra"
"sigs.k8s.io/yaml"
@ -45,7 +46,8 @@ func init() {
func debug(format string, v ...interface{}) {
if settings.Debug {
format = fmt.Sprintf("[debug] %s\n", format)
timeNow := time.Now().UTC().String()
format = fmt.Sprintf("%s [debug] %s\n", timeNow, format)
log.Output(2, fmt.Sprintf(format, v...))
}
}

Loading…
Cancel
Save