Skip to content

Commit 29ffd4d

Browse files
max-nextcloudjuliusknorr
authored andcommitted
enh(log): use level warning for saving empty docs
Saving an empty document can happen from time to time but if it happens to often it may indicate some problem. Keep an eye on these without needing to log all debug things in text. Signed-off-by: Max <max@nextcloud.com>
1 parent 0d55759 commit 29ffd4d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Service/DocumentService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ public function autosave(?File $file, int $documentId, int $version, ?string $au
342342
}
343343

344344
if (empty($autoSaveDocument)) {
345-
$this->logger->debug('Saving empty document', [
345+
$this->logger->warning('Saving empty document', [
346346
'requestVersion' => $version,
347347
'requestAutosaveDocument' => $autoSaveDocument,
348348
'requestDocumentState' => $documentState,

0 commit comments

Comments
 (0)