Skip to content

Commit

Permalink
fix logger format
Browse files Browse the repository at this point in the history
Signed-off-by: xeptore <[email protected]>
  • Loading branch information
xeptore committed Mar 22, 2023
1 parent f3de820 commit ea4be0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ingest/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (

"github.com/joho/godotenv"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
"go.mongodb.org/mongo-driver/bson"
"go.mongodb.org/mongo-driver/mongo"
"go.mongodb.org/mongo-driver/mongo/options"
Expand All @@ -35,7 +34,8 @@ var (
func main() {
ctx := context.Background()

log := zerolog.New(log.Output(zerolog.ConsoleWriter{Out: os.Stdout, TimeFormat: time.RFC3339}))
zerolog.TimeFieldFormat = zerolog.TimeFormatUnixMicro
log := zerolog.New(os.Stdout).With().Timestamp().Logger()

if err := godotenv.Load(); nil != err {
if !errors.Is(err, os.ErrNotExist) {
Expand Down

0 comments on commit ea4be0d

Please sign in to comment.