mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Make sure log stays small.
This commit is contained in:
parent
9bcd1ed807
commit
8bb4b0b9b2
@ -261,12 +261,18 @@ class ImportJobRepository implements ImportJobRepositoryInterface
|
|||||||
*/
|
*/
|
||||||
public function setExtendedStatus(ImportJob $job, array $array): ImportJob
|
public function setExtendedStatus(ImportJob $job, array $array): ImportJob
|
||||||
{
|
{
|
||||||
Log::debug(sprintf('Incoming extended status for job "%s" is: ', $job->key), $array);
|
// remove 'errors' because it gets larger and larger and larger...
|
||||||
|
$display = $array;
|
||||||
|
unset($display['errors']);
|
||||||
|
Log::debug(sprintf('Incoming extended status for job "%s" is (except errors): ', $job->key), $display);
|
||||||
$currentStatus = $job->extended_status;
|
$currentStatus = $job->extended_status;
|
||||||
$newStatus = array_merge($currentStatus, $array);
|
$newStatus = array_merge($currentStatus, $array);
|
||||||
$job->extended_status = $newStatus;
|
$job->extended_status = $newStatus;
|
||||||
$job->save();
|
$job->save();
|
||||||
Log::debug(sprintf('Set extended status of job "%s" to: ', $job->key), $newStatus);
|
|
||||||
|
// remove 'errors' because it gets larger and larger and larger...
|
||||||
|
unset($newStatus['errors']);
|
||||||
|
Log::debug(sprintf('Set extended status of job "%s" to (except errors): ', $job->key), $newStatus);
|
||||||
|
|
||||||
return $job;
|
return $job;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user