Skip to content

Commit

Permalink
edit loggin
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyKomarovCoder committed Nov 12, 2023
1 parent ca23b30 commit eb8c748
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/common/logger/logging.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ func NewLogger(ctx context.Context) *Logger {
panic(err)
}

err = os.Chmod(logFolderPath, 0644)
if err != nil {
panic(err)
}

lumber := &lumberjack.Logger{
Filename: logFolderPath + "/server.log",
MaxSize: 30,
Expand Down

0 comments on commit eb8c748

Please sign in to comment.