Log message on startup
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Thu, 7 Oct 2010 10:24:56 +0000 (12:24 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Thu, 7 Oct 2010 10:24:56 +0000 (12:24 +0200)
src/logger.cpp
src/logger.hpp
src/main.cpp

index ceb8a35..d0498cb 100644 (file)
@@ -1086,6 +1086,18 @@ void Logger::print_update_service_failure(const string& service)
     }
 }
 
+/**
+ * Start message
+ */
+void Logger::print_started() const
+{
+    int level = 0;
+    if ( level <= Loglevel )
+    {
+        log_notice("Started");
+    }
+}
+
 
 /**
  * Starting shutdown
index a97d75b..6fd05cc 100644 (file)
@@ -68,6 +68,8 @@ public:
 
     void print_version() const;
 
+    void print_started() const;
+
     void print_cmd_parsed() const;
 
     void print_conf_files_parsed() const;
index b00ee10..39f3549 100644 (file)
@@ -312,6 +312,9 @@ int main(int argc, char *argv[])
     if (updater->get_config()->get_daemon_mode() != 1)
         exit_now = true;
 
+    // Tell the world we are running
+    updater->get_logger()->print_started();
+
     // service processing starts here
     do
     {