Skip to content

Commit

Permalink
chore: rename file logger hook variable
Browse files Browse the repository at this point in the history
  • Loading branch information
rolznz committed Jan 24, 2024
1 parent a98bd44 commit a08ef5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func NewService(ctx context.Context) (*Service, error) {
logger.SetOutput(os.Stdout)
logger.SetLevel(log.InfoLevel)

hook, err := lumberjackrus.NewHook(
fileLoggerHook, err := lumberjackrus.NewHook(
&lumberjackrus.LogFile{
Filename: path.Join(appConfig.Workdir, "log/nwc-general.log"),
},
Expand All @@ -51,7 +51,7 @@ func NewService(ctx context.Context) (*Service, error) {
if err != nil {
return nil, err
}
logger.AddHook(hook)
logger.AddHook(fileLoggerHook)

var db *gorm.DB
var sqlDb *sql.DB
Expand Down

0 comments on commit a08ef5c

Please sign in to comment.