mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-26 19:00:22 -06:00
Clean up debug code
This commit is contained in:
parent
9350b4939c
commit
cb81446ca6
@ -412,12 +412,10 @@ class UpgradeDatabase extends Command
|
||||
if (!(intval($transaction->transaction_currency_id) === intval($currency->id)) && null === $transaction->foreign_amount) {
|
||||
Log::debug(
|
||||
sprintf(
|
||||
'Transaction #%d has a currency setting (#%d) (%s) that should be #%d (%s). Amount remains %s, currency is changed.',
|
||||
'Transaction #%d has a currency setting #%d that should be #%d. Amount remains %s, currency is changed.',
|
||||
$transaction->id,
|
||||
$transaction->transaction_currency_id,
|
||||
$this->var_dump_ret(intval($transaction->transaction_currency_id)),
|
||||
$currency->id,
|
||||
$this->var_dump_ret(intval($currency->id)),
|
||||
$transaction->amount
|
||||
)
|
||||
);
|
||||
@ -504,19 +502,4 @@ class UpgradeDatabase extends Command
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param null $mixed
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
private function var_dump_ret($mixed = null): string
|
||||
{
|
||||
ob_start();
|
||||
var_dump($mixed);
|
||||
$content = ob_get_contents();
|
||||
ob_end_clean();
|
||||
|
||||
return trim($content);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user