Skip to content

Commit

Permalink
Removed timestamp printing to log lib output for API and lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Nemere committed Dec 5, 2023
1 parent 1c01992 commit dbe2025
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/api/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ func main() {

rand.Seed(time.Now().UnixNano())

// Turn off date+time prefixing of log msgs, we have timestamps captured in other ways
log.SetFlags(0)

cfg := loadConfig()
svcs := initServices(cfg)

Expand Down
3 changes: 3 additions & 0 deletions internal/lambdas/data-import/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ func HandleRequest(ctx context.Context, event awsutil.Event) (string, error) {

remoteFS := fileaccess.MakeS3Access(svc)

// Turn off date+time prefixing of log msgs, we have timestamps captured in other ways
log.SetFlags(0)

// Normally we'd only expect event.Records to be of length 1...
worked := 0
logger := &logger.StdOutLogger{}
Expand Down

0 comments on commit dbe2025

Please sign in to comment.