Code

tools: Log library versions as well on startup.
authorSebastian Harl <sh@tokkee.org>
Thu, 1 May 2014 21:19:50 +0000 (23:19 +0200)
committerSebastian Harl <sh@tokkee.org>
Thu, 1 May 2014 21:19:50 +0000 (23:19 +0200)
src/tools/sysdb/main.c
src/tools/sysdbd/main.c

index 1174fa9fa0462ddb13603456b7de2bba19a4d33e..05c5b9fb6d6ce6f6d57cb45f04666dff37e775a7 100644 (file)
@@ -306,7 +306,8 @@ main(int argc, char **argv)
        }
 
        sdb_log(SDB_LOG_INFO, "SysDB client "SDB_CLIENT_VERSION_STRING
-                       SDB_CLIENT_VERSION_EXTRA"\n");
+                       SDB_CLIENT_VERSION_EXTRA" (libsysdbclient %s%s)\n",
+                       sdb_client_version_string(), sdb_client_version_extra());
 
        using_history();
 
index 7dc9f26ba4b33bff7ab41a67996bedb34aa1a824..b8e97a3c3780ec1c01cee7fc88dcd9d28bc41f2d 100644 (file)
@@ -267,7 +267,8 @@ main_loop(void)
                }
 
                sdb_log(SDB_LOG_INFO, "SysDB daemon "SDB_VERSION_STRING
-                               SDB_VERSION_EXTRA " (pid %i) initialized successfully",
+                               SDB_VERSION_EXTRA " (libsysdb %s%s, pid %i) initialized "
+                               "successfully", sdb_version_string(), sdb_version_extra(),
                                (int)getpid());
 
                sdb_connection_enable_logging();