Skip to content

Commit

Permalink
Use current timestamp even with non-randomized samples
Browse files Browse the repository at this point in the history
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
  • Loading branch information
bazsi authored Oct 5, 2023
1 parent 2028f6a commit 0ebc724
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion formats/syslog/syslog.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func SampleData() TemplateData {
return TemplateData{
Facility: 20,
severity: 5,
dateTime: time.Date(2011, 6, 25, 20, 0, 4, 0, time.UTC),
dateTime: dateTime: time.Now().UTC(),

Check failure on line 66 in formats/syslog/syslog.go

View workflow job for this annotation

GitHub Actions / Build and test

syntax error: unexpected : in composite literal; possibly missing comma or }
Host: viper.GetString("message.host"),
AppName: viper.GetString("message.appname"),
PID: 1143,
Expand Down

0 comments on commit 0ebc724

Please sign in to comment.