Log SHA1 version on start
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 29 Sep 2009 08:23:56 +0000 (10:23 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 29 Sep 2009 08:23:56 +0000 (10:23 +0200)
src/pazpar2.c

index c28a46a..3f5b1cf 100644 (file)
@@ -177,7 +177,13 @@ static int sc_main(
     }
     else
     {
-        yaz_log(YLOG_LOG, "Pazpar2 %s started", VERSION);
+        yaz_log(YLOG_LOG, "Pazpar2 " VERSION  " "
+#ifdef PAZPAR2_VERSION_SHA1
+                PAZPAR2_VERSION_SHA1
+#else
+                "-"
+#endif
+                " started");
         if (daemon && !log_file_in_use)
         {
             yaz_log(YLOG_FATAL, "Logfile must be given (option -l) for daemon "