Skip to content
Snippets Groups Projects

imp: better report log message for deposito

Open simon requested to merge imp-better-log-message-for-deposito into v2.x
Compare and
1 file
+ 2
1
Preferences
File browser
Compare changes
@@ -122,10 +122,11 @@ class DSRDepositoEventSubscriber implements EventSubscriberInterface {
}
if (!$share_issue || $balance < $share_issue->getSharePrice()) {
\Drupal::logger('dsr_deposito')->notice('deposito account @account has insuffucient balance: @balance',
\Drupal::logger('dsr_deposito')->notice('deposito account @account has insuffucient balance: @balance (price @price)',
[
'@account' => $account->getName(),
'@balance' => $account->getCreditBalance(),
'@price' => $share_issue ? $share_issue->getSharePrice() : 'unknown',
]
);
return;