Skip to content

Commit

Permalink
fix: disable log timestamp
Browse files Browse the repository at this point in the history
Signed-off-by: lowang-bh <lhui_wang@163.com>
  • Loading branch information
wanglonghui7 authored and lowang-bh committed Sep 13, 2023
1 parent 6bd9e01 commit bb06f86
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ import (
grafanav1alpha1 "sigs.k8s.io/kubebuilder/v3/pkg/plugins/optional/grafana/v1alpha"
)

func init(){
// Disable timestamps on the default TextFormatter
logrus.SetFormatter(&logrus.TextFormatter{DisableTimestamp: true})
}

func main() {

const deprecateMessageGoV3Bundle = "This version is deprecated." +
Expand Down
1 change: 1 addition & 0 deletions hack/docs/generate_samples.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import (
const KubebuilderBinName = "/tmp/kubebuilder/bin/kubebuilder"

func main() {
log.SetFormatter(&log.TextFormatter{DisableTimestamp: true})
log.Println("Generating documents...")

log.Println("Generating component-config tutorial...")
Expand Down

0 comments on commit bb06f86

Please sign in to comment.