Skip to content

Commit

Permalink
fix: clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtdeh committed Apr 27, 2024
1 parent ef67592 commit 332118a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions pkg/lumber/lumber.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,8 @@ func M2(body string) interface{} {
if err != nil {
log.Fatal("error in unmarshal winlog : ", err.Error())
}

dateNow := time.Now().Format("2006-01-02T15:04:05")
// if _, ok := res["@timestamp"]; ok {
res["@timestamp"] = dateNow
// } else {
// log.Fatal("@timestampe field not found in the json to overwrite")
// }

return res
}

Expand Down

0 comments on commit 332118a

Please sign in to comment.