]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
import: add a debugging log of importing blob
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 13 Aug 2025 06:26:35 +0000 (15:26 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 3 Sep 2025 10:10:48 +0000 (12:10 +0200)
This should be helpful for debugging issue #38524.

(cherry picked from commit 2633ed01caa93a7bf909fc2c6ee4af1ff6fb48d4)

src/import/import-compress.c

index 28cf6f841a2b39e71c95d941eafcce557e158794..dc61c725b0f328f6e6f96c442d40937a43fe01e1 100644 (file)
@@ -1,6 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
 #include "import-compress.h"
+#include "log.h"
 #include "string-table.h"
 
 void import_compress_free(ImportCompress *c) {
@@ -79,6 +80,7 @@ int import_uncompress_detect(ImportCompress *c, const void *data, size_t size) {
 
         c->encoding = false;
 
+        log_debug("Detected compression type: %s", import_compress_type_to_string(c->type));
         return 1;
 }