feat(api): Protokollzeile je Anfrage und je Nextcloud-Pruefung im Docker-Log

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-10-02 23:42:10 +02:00
parent fffb7ffbec
commit 0afcf237e8
5 changed files with 96 additions and 4 deletions
@@ -219,6 +219,7 @@ export class NextcloudStatusService {
});
if (!existing) throw new NotFoundException('Cloud nicht gefunden');
const startedAt = Date.now();
const result = await fetchNextcloudStatus(existing.baseUrl);
const now = new Date();
const plan = planStatusWrite(existing.consecutiveFailures, result, now);
@@ -228,6 +229,12 @@ export class NextcloudStatusService {
select: { ...PUBLIC_SELECT, alertState: true },
});
const view = this.toView(updated as PublicRow, await this.release.getReference());
const outcome = result.reachable
? `Version ${result.versionString ?? '?'}${result.maintenance ? ', Wartungsmodus' : ''}`
: `Fehler ${result.errorKind}${result.errorDetail ? ` (${result.errorDetail})` : ''}`;
this.logger.log(
`Pruefung "${updated.customerName}" ${existing.baseUrl}: ${outcome}, Ampel ${view.rating.level}, ${Date.now() - startedAt} ms`,
);
try {
await this.alerts.evaluateAfterCheck(
tenantId,