tests: Fix unit test failures related to additional logging.
[openvswitch] / ovsdb / ovsdb-server.c
index b430b0e56711b3a8ff1f8e664ec44b93e6bdc00e..139acc61107b4037564977ca97eaafc8d96b9b0d 100644 (file)
@@ -137,7 +137,12 @@ main(int argc, char *argv[])
 
     daemonize_complete();
 
-    VLOG_INFO("%s (Open vSwitch) %s", program_name, VERSION);
+    if (!run_command) {
+        /* ovsdb-server is usually a long-running process, in which case it
+         * makes plenty of sense to log the version, but --run makes
+         * ovsdb-server more like a command-line tool, so skip it.  */
+        VLOG_INFO("%s (Open vSwitch) %s", program_name, VERSION);
+    }
 
     unixctl_command_register("exit", "", 0, 0, ovsdb_server_exit, &exiting);
     unixctl_command_register("ovsdb-server/compact", "", 0, 0,