Skip to content

Commit

Permalink
Merge pull request #3619 from dragon-flyings/log
Browse files Browse the repository at this point in the history
🐛  fix: disable log timestamp
  • Loading branch information
k8s-ci-robot committed Sep 14, 2023
2 parents b7e878e + 2addf1d commit 1aefcc2
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 1aefcc2

Please sign in to comment.