Skip to content

Commit

Permalink
Aplica melhorias.
Browse files Browse the repository at this point in the history
  • Loading branch information
armando-couto committed Mar 17, 2022
1 parent 1305405 commit 0270587
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions logger_file.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
)

type Message struct {
Log log.Logger
Log *log.Logger
File string
Query string
Info string
Expand All @@ -31,7 +31,7 @@ func CreateFileDay(message Message) {
}

func FormatMessage(message Message) Message {
message.Log = log.Logger{}
message.Log = &log.Logger{}
message.Log.SetFlags(log.LstdFlags | log.Lshortfile)
return message
}
Expand Down

0 comments on commit 0270587

Please sign in to comment.