Skip to content

Commit

Permalink
Fix parsing of log-levels by removing date/time prefix (#440)
Browse files Browse the repository at this point in the history
  • Loading branch information
bengesoff authored Jul 8, 2021
1 parent ba6a3db commit c07e33c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ func main() {

opts := &plugin.ServeOpts{ProviderFunc: fastly.Provider}

// Prevent logger from prepending date/time to logs, which breaks log-level parsing/filtering
log.SetFlags(0)

if debugMode {
err := plugin.Debug(context.Background(), "fastly/fastly", opts)
if err != nil {
Expand Down

0 comments on commit c07e33c

Please sign in to comment.