Change log level in migrators

This commit is contained in:
Bubka 2022-12-09 10:55:39 +01:00
parent 65c4bbc496
commit 6ab73cba3a
4 changed files with 4 additions and 4 deletions

View File

@ -98,7 +98,7 @@ class AegisMigrator extends Migrator
$twofaccounts[$key]->fillWithOtpParameters($parameters);
} catch (\Exception $exception) {
Log::error(sprintf('Cannot instanciate a TwoFAccount object with OTP parameters from imported item #%s', $key));
Log::error($exception->getMessage());
Log::debug($exception->getMessage());
// The token failed to generate a valid account so we create a fake account to be returned.
$fakeAccount = new TwoFAccount();

View File

@ -55,7 +55,7 @@ class GoogleAuthMigrator extends Migrator
$twofaccounts[$key]->fillWithOtpParameters($parameters);
} catch (Exception $exception) {
Log::error(sprintf('Cannot instanciate a TwoFAccount object with OTP parameters from imported item #%s', $key));
Log::error($exception->getMessage());
Log::debug($exception->getMessage());
// The token failed to generate a valid account so we create a fake account to be returned.
$fakeAccount = new TwoFAccount();

View File

@ -35,7 +35,7 @@ class PlainTextMigrator extends Migrator
$twofaccounts[$key]->fillWithURI($uri);
} catch (\Exception $exception) {
Log::error(sprintf('Cannot instanciate a TwoFAccount object with OTP parameters from imported item #%s', $key));
Log::error($exception->getMessage());
Log::debug($exception->getMessage());
// The token failed to generate a valid account so we create a fake account to be returned.
$fakeAccount = new TwoFAccount();

View File

@ -101,7 +101,7 @@ class TwoFASMigrator extends Migrator
$twofaccounts[$key]->fillWithOtpParameters($parameters);
} catch (\Exception $exception) {
Log::error(sprintf('Cannot instanciate a TwoFAccount object with 2FAS imported item #%s', $key));
Log::error($exception->getMessage());
Log::debug($exception->getMessage());
// The token failed to generate a valid account so we create a fake account to be returned.
$fakeAccount = new TwoFAccount();