feat(admin): do not log assets cleanup message if nothing deleted

This commit is contained in:
2025-10-19 14:52:13 +03:00
parent 259154e4f1
commit 00165b3b61

View File

@@ -597,6 +597,7 @@ HTML,
}
}
if ($deletedFiles > 0) {
$this->log->write(
sprintf(
'[TELECART] Очистка assets завершена. Удалено: %d, оставлено: %d',
@@ -604,6 +605,7 @@ HTML,
$keptFiles
)
);
}
} catch (JsonException $e) {
$this->log->write('[TELECART] Ошибка декодирования файла manifest.json: ' . $e->getMessage());
} catch (Exception $e) {