Skip to content

Commit

Permalink
Make log timestamp readable (#206)
Browse files Browse the repository at this point in the history
Co-authored-by: wuhua.ck <[email protected]>
  • Loading branch information
chenk008 and wuhua.ck authored Mar 22, 2022
1 parent ee72afc commit b05e1fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ray-operator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"
"os"

"go.uber.org/zap/zapcore"
"sigs.k8s.io/controller-runtime/pkg/healthz"

"github.com/ray-project/kuberay/ray-operator/controllers"
Expand Down Expand Up @@ -53,6 +54,7 @@ func main() {
"Watch custom resources in the namespace, ignore other namespaces. If empty, all namespaces will be watched.")
opts := zap.Options{
Development: true,
TimeEncoder: zapcore.ISO8601TimeEncoder,
}
opts.BindFlags(flag.CommandLine)
flag.Parse()
Expand Down

0 comments on commit b05e1fb

Please sign in to comment.