Skip to content

Commit

Permalink
Fix logging bug to log all assigned sequence numbers. (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiggoha authored Dec 14, 2023
1 parent 0d4d1b4 commit 540c3bb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions experimental/gcp-log/function.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,13 +188,13 @@ func Sequence(w http.ResponseWriter, r *http.Request) {
http.StatusInternalServerError)
return
}
}

l := fmt.Sprintf("Sequence num %d assigned to %s", seq, attrs.Name)
if dupe {
l += " (dupe)"
}
fmt.Println(l)
l := fmt.Sprintf("Sequence num %d assigned to %s", seq, attrs.Name)
if dupe {
l += " (dupe)"
}
fmt.Println(l)
}
}

Expand Down

0 comments on commit 540c3bb

Please sign in to comment.