Skip to content

Commit

Permalink
fix(evpn-bridge): log file fix
Browse files Browse the repository at this point in the history
Signed-off-by: atulpatel261194 <Atul.Patel@intel.com>
  • Loading branch information
atulpatel261194 authored and sandersms committed Aug 1, 2024
1 parent 708f948 commit 5505b13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ var logger *log.Logger
func setupLogger(filename string) {
var err error
filename = filepath.Clean(filename)
out, err := os.OpenFile(filename, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0600)
out, err := os.OpenFile(filename, os.O_TRUNC|os.O_CREATE|os.O_WRONLY, 0600)
if err != nil {
log.Panic(err)
}
Expand Down

0 comments on commit 5505b13

Please sign in to comment.