]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/resolve/fuzz-etc-hosts.c
Merge pull request #32915 from yuwata/machine-id-setup
[thirdparty/systemd.git] / src / resolve / fuzz-etc-hosts.c
index bd6d0a8d5d22c807be27f187a8e1c120834e35af..9fb1ee1b0b501077432b52574d29b797e91bd5fd 100644 (file)
@@ -8,8 +8,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
         _cleanup_fclose_ FILE *f = NULL;
         _cleanup_(etc_hosts_clear) EtcHosts h = {};
 
-        if (!getenv("SYSTEMD_LOG_LEVEL"))
-                log_set_max_level(LOG_CRIT);
+        fuzz_setup_logging();
 
         f = data_to_file(data, size);
         assert_se(f);