]> git.ipfire.org Git - people/stevee/guardian.git/commitdiff
guardian: Log successfull launch of the programm.
authorStefan Schantl <stefan.schantl@ipfire.org>
Thu, 21 Dec 2017 14:59:50 +0000 (15:59 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Thu, 21 Dec 2017 14:59:50 +0000 (15:59 +0100)
Log if the programm successfully has been launched. In case
the log level was set to info, there was only a log entry after
the programm has been stopped, but it was quite hard to see if it
was successfully started before.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
guardian.in

index 06fc83d563d0f1b9774fe61e85d48071006c1545..4be2b779475c01b8705a8f4f7621a1cd71c3ca5b 100644 (file)
@@ -121,6 +121,9 @@ unless (defined($cmdargs{"foreground"})) {
 # Call Init function to initzialize guardian.
 &Init();
 
+# Log successfully started process.
+$logger->Log("info", "Guardian $version successfully started...");
+
 # Infinite main loop, which processes all queued events.
 while(1) {
        # Get the amount of elements in our queue.