Add line break to log message

This commit is contained in:
Hillel Coren 2018-04-29 09:38:30 +03:00
parent 37775a1d33
commit 8af971872e

View File

@ -377,7 +377,7 @@ class InvoiceRepository extends BaseRepository
if (Utils::isNinjaProd() && ! Utils::isReseller()) { if (Utils::isNinjaProd() && ! Utils::isReseller()) {
$copy = json_decode( json_encode($data), true); $copy = json_decode( json_encode($data), true);
$copy['data'] = false; $copy['data'] = false;
$logMessage = date('r') . ' account_id: ' . $account->id . ' ' . json_encode($copy); $logMessage = date('r') . ' account_id: ' . $account->id . ' ' . json_encode($copy) . "\n\n";
@file_put_contents(storage_path('logs/invoice-repo.log'), $logMessage, FILE_APPEND); @file_put_contents(storage_path('logs/invoice-repo.log'), $logMessage, FILE_APPEND);
} }