ovsdb: Raise database corruption log level from warning to error.
authorBen Pfaff <blp@nicira.com>
Mon, 28 Mar 2011 19:59:18 +0000 (12:59 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 31 Mar 2011 23:43:51 +0000 (16:43 -0700)
If there's database corruption then it indicates that something went wrong,
e.g. the machine was powered-off by power failure.  It's definitely
something that the admin should know about.  This sounds like an error to
me, so use that log level.

ovsdb/file.c

index 9f0ab28..1425beb 100644 (file)
@@ -230,7 +230,7 @@ ovsdb_file_open__(const char *file_name,
          * truncated due to power failure etc. and we should use its current
          * contents. */
         char *msg = ovsdb_error_to_string(error);
-        VLOG_WARN("%s", msg);
+        VLOG_ERR("%s", msg);
         free(msg);
 
         ovsdb_error_destroy(error);