More debug info.

This commit is contained in:
James Cole
2023-12-29 08:25:01 +01:00
parent c08d44ea48
commit c16f7d214f
6 changed files with 25 additions and 22 deletions

View File

@@ -120,6 +120,7 @@ class ShowController extends Controller
{
app('log')->debug(sprintf('Now in triggerTransaction(%d, %d)', $webhook->id, $group->id));
Log::channel('audit')->info(sprintf('User triggers webhook #%d on transaction group #%d.', $webhook->id, $group->id));
/** @var MessageGeneratorInterface $engine */
$engine = app(MessageGeneratorInterface::class);
$engine->setUser(auth()->user());

View File

@@ -78,6 +78,7 @@ class CategoryController extends Controller
public function dashboard(DateRequest $request): JsonResponse
{
Log::info(sprintf('Created new ExchangeRateConverter in %s', __METHOD__));
/** @var Carbon $start */
$start = $this->parameters->get('start');

View File

@@ -55,6 +55,7 @@ class IndexController extends Controller
public function index()
{
Log::channel('audit')->info('User visits webhook index page.');
return view('webhooks.index');
}
}

View File

@@ -339,7 +339,6 @@ class Steam
*/
public function balanceConverted(Account $account, Carbon $date, TransactionCurrency $native): string
{
app('log')->debug(sprintf('Now in balanceConverted (%s) for account #%d, converting to %s', $date->format('Y-m-d'), $account->id, $native->code));
$cache = new CacheProperties();
$cache->addProperty($account->id);
$cache->addProperty('balance');
@@ -359,6 +358,7 @@ class Steam
// Log::debug('No conversion necessary!');
return $this->balance($account, $date);
}
app('log')->info(sprintf('Now in balanceConverted (%s) for account #%d, converting to %s', $date->format('Y-m-d'), $account->id, $native->code));
$new = [];
$existing = [];