mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-04 19:53:44 +00:00
Less hysterical about JSON errors
This commit is contained in:
@@ -204,11 +204,11 @@ class DecryptDatabase extends Command
|
|||||||
try {
|
try {
|
||||||
$newValue = json_decode($value, true, 512, JSON_THROW_ON_ERROR) ?? $value;
|
$newValue = json_decode($value, true, 512, JSON_THROW_ON_ERROR) ?? $value;
|
||||||
} catch (JsonException $e) {
|
} catch (JsonException $e) {
|
||||||
$message = sprintf('Could not JSON decode preference row #%d: %s', $id, $e->getMessage());
|
$message = sprintf('Could not JSON decode preference row #%d: %s. This does not have to be a problem.', $id, $e->getMessage());
|
||||||
$this->error($message);
|
$this->error($message);
|
||||||
Log::error($message);
|
Log::warning($message);
|
||||||
Log::error($value);
|
Log::warning($value);
|
||||||
Log::error($e->getTraceAsString());
|
Log::warning($e->getTraceAsString());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user