From 6ab73cba3aa47482fd87f16cd84811e732217730 Mon Sep 17 00:00:00 2001 From: Bubka <858858+Bubka@users.noreply.github.com> Date: Fri, 9 Dec 2022 10:55:39 +0100 Subject: [PATCH] Change log level in migrators --- app/Services/Migrators/AegisMigrator.php | 2 +- app/Services/Migrators/GoogleAuthMigrator.php | 2 +- app/Services/Migrators/PlainTextMigrator.php | 2 +- app/Services/Migrators/TwoFASMigrator.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Services/Migrators/AegisMigrator.php b/app/Services/Migrators/AegisMigrator.php index 66b30189..be31cbce 100644 --- a/app/Services/Migrators/AegisMigrator.php +++ b/app/Services/Migrators/AegisMigrator.php @@ -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(); diff --git a/app/Services/Migrators/GoogleAuthMigrator.php b/app/Services/Migrators/GoogleAuthMigrator.php index e0555dd4..89332bb6 100644 --- a/app/Services/Migrators/GoogleAuthMigrator.php +++ b/app/Services/Migrators/GoogleAuthMigrator.php @@ -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(); diff --git a/app/Services/Migrators/PlainTextMigrator.php b/app/Services/Migrators/PlainTextMigrator.php index 20c7b9c8..b703c2a3 100644 --- a/app/Services/Migrators/PlainTextMigrator.php +++ b/app/Services/Migrators/PlainTextMigrator.php @@ -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(); diff --git a/app/Services/Migrators/TwoFASMigrator.php b/app/Services/Migrators/TwoFASMigrator.php index 30e17324..07845257 100644 --- a/app/Services/Migrators/TwoFASMigrator.php +++ b/app/Services/Migrators/TwoFASMigrator.php @@ -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();