Skip to content

Commit

Permalink
fix(loggen): Add ERROR prefix to error message
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejsika committed Nov 27, 2024
1 parent 1e333fc commit 39eba5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/loggen/loggen.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ var Cmd = &cobra.Command{

randomNumber := rand.Intn(100)
if randomNumber > 90 && !FlagNoError {
logger.Error().Str("prefix", FlagLogPrefix).Int("i", i).Msg("An error is usually an exception that has been caught and not handled.")
logger.Error().Str("prefix", FlagLogPrefix).Int("i", i).Msg("ERROR An error is usually an exception that has been caught and not handled.")
if FlagLokiURL != "" {
client.Handle(model.LabelSet{
"prefix": model.LabelValue(FlagLogPrefix),
Expand Down

0 comments on commit 39eba5e

Please sign in to comment.