mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-06-20 19:57:44 +02:00
Change log level in migrators
This commit is contained in:
parent
65c4bbc496
commit
6ab73cba3a
@ -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();
|
||||
|
@ -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();
|
||||
|
@ -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();
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user