Skip to content

Commit

Permalink
fixup! Migrate access/msteams to slog + add debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
hugoShaka committed Oct 1, 2024
1 parent 35eb878 commit 1c9bac2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/config/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ import (
)

const (
// logFileDefaultMode is the preferred permissions mode for log file.
logFileDefaultMode fs.FileMode = 0o644
// logFileDefaultFlag is the preferred flags set to log file.
logFileDefaultFlag = os.O_WRONLY | os.O_CREATE | os.O_APPEND
// LogFileDefaultMode is the preferred permissions mode for log file.
LogFileDefaultMode fs.FileMode = 0o644
// LogFileDefaultFlag is the preferred flags set to log file.
LogFileDefaultFlag = os.O_WRONLY | os.O_CREATE | os.O_APPEND
)

// CommandLineFlags stores command line flag values, it's a much simplified subset
Expand Down Expand Up @@ -802,7 +802,7 @@ func applyLogConfig(loggerConfig Log, cfg *servicecfg.Config) error {
w = sw
default:
// Assume this is a file path.
sharedWriter, err := logutils.NewFileSharedWriter(loggerConfig.Output, logFileDefaultFlag, logFileDefaultMode)
sharedWriter, err := logutils.NewFileSharedWriter(loggerConfig.Output, LogFileDefaultFlag, LogFileDefaultMode)
if err != nil {
return trace.Wrap(err, "failed to init the log file shared writer")
}
Expand Down

0 comments on commit 1c9bac2

Please sign in to comment.