chiark / gitweb /
log: properly open log target in the various utilities
[elogind.git] / src / random-seed.c
index 91aa6c6b4e6917578664cf9fe0c2f7347db5e51c..b9cafb7cd7fb568de359895bfc306e705ad2149c 100644 (file)
@@ -39,7 +39,9 @@ int main(int argc, char *argv[]) {
                 return 1;
         }
 
                 return 1;
         }
 
+        log_set_target(LOG_TARGET_SYSLOG_OR_KMSG);
         log_parse_environment();
         log_parse_environment();
+        log_open();
 
         /* When we load the seed we read it and write it to the device
          * and then immediately update the saved seed with new data,
 
         /* When we load the seed we read it and write it to the device
          * and then immediately update the saved seed with new data,