diff options
Diffstat (limited to 'internal/authentication/file_user_provider.go')
| -rw-r--r-- | internal/authentication/file_user_provider.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/authentication/file_user_provider.go b/internal/authentication/file_user_provider.go index 130a534ca..3a42290c0 100644 --- a/internal/authentication/file_user_provider.go +++ b/internal/authentication/file_user_provider.go @@ -36,10 +36,12 @@ type DatabaseModel struct { // NewFileUserProvider creates a new instance of FileUserProvider. func NewFileUserProvider(configuration *schema.FileAuthenticationBackendConfiguration) *FileUserProvider { + logger := logging.Logger() + errs := checkDatabase(configuration.Path) if errs != nil { for _, err := range errs { - logging.Logger().Error(err) + logger.Error(err) } os.Exit(1) |
