Skip to content

Commit

Permalink
feat: add SetLogger method to app
Browse files Browse the repository at this point in the history
  • Loading branch information
MattKetmo committed Jan 10, 2023
1 parent 5f0715f commit 5138f08
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,12 @@ func New(cfg *Config) (*App, error) {
}, nil
}

func (app *App) SetLogger(logger *logrus.Logger) {
app.logger = logger
app.server.SetLogger(logger)
app.healthServer.SetLogger(logger)
}

func (app *App) setStatus(status string) {
app.statusMux.Lock()
app.status = status
Expand Down

0 comments on commit 5138f08

Please sign in to comment.