Skip to content

Commit

Permalink
Merge pull request #489 from jmpsec/bug-admin-db-logger
Browse files Browse the repository at this point in the history
Fix to prevent nil DBLogger in osctrl-admin
  • Loading branch information
javuto authored Aug 19, 2024
2 parents 299e774 + e6202e6 commit 9f8f8ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -736,10 +736,10 @@ func osctrlAdminService() {
}()

var loggerDBConfig *backend.JSONConfigurationDB
loggerFile = ""
// Set the logger configuration file if we have a DB logger
if adminConfig.Logger == settings.LoggingDB {
if loggerDbSame {
loggerFile = ""
loggerDBConfig = &dbConfig
}
}
Expand Down

0 comments on commit 9f8f8ae

Please # to comment.