diff options
| author | Amir Zarrinkafsh <nightah@me.com> | 2021-01-17 10:23:35 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-17 10:23:35 +1100 |
| commit | 296efe2b32d2d99b9f689698ae80bba181a0fe77 (patch) | |
| tree | 34f32ee6fd0b8b7d1c092d89cbf09917ab02f6a3 /internal/authentication/file_user_provider.go | |
| parent | 8bab8d47ef1d49c5a5442ef1d84df767a4a8e786 (diff) | |
[MISC] Add missing CLI suite test (#1607)
* [MISC] Add missing CLI suite test
* Add missing test for `authelia version` command in CLI suite.
* Standardise logger calls and swap CSP switch order
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) |
