Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-04-22 16:22:50 +0300
committerJoas Schilling <coding@schilljs.com>2021-04-27 15:34:32 +0300
commit167efa19d706b1e430343554cdecd513cbb6610e (patch)
tree8f4afd2fd685a8434281046f7aa89713f7b8d798 /lib/private/Setup/MySQL.php
parentdf47445c014b83d8400bada6dad53d26d24fd803 (diff)
Fix psalm errors
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Setup/MySQL.php')
-rw-r--r--lib/private/Setup/MySQL.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/private/Setup/MySQL.php b/lib/private/Setup/MySQL.php
index c2b0cd8aaac..7b90e1f715c 100644
--- a/lib/private/Setup/MySQL.php
+++ b/lib/private/Setup/MySQL.php
@@ -66,7 +66,9 @@ class MySQL extends AbstractDatabase {
try {
$connection->connect();
} catch (\Exception $e) {
- $this->logger->logException($e);
+ $this->logger->error($e->getMessage(), [
+ 'exception' => $e,
+ ]);
throw new \OC\DatabaseSetupException($this->trans->t('MySQL username and/or password not valid'),
$this->trans->t('You need to enter details of an existing account.'), 0, $e);
}
@@ -177,9 +179,8 @@ class MySQL extends AbstractDatabase {
}
}
} catch (\Exception $ex) {
- $this->logger->logException($ex, [
- 'message' => 'Can not create a new MySQL user, will continue with the provided user.',
- 'level' => ILogger::INFO,
+ $this->logger->info('Can not create a new MySQL user, will continue with the provided user.', [
+ 'exception' => $ex,
'app' => 'mysql.setup',
]);
}