summaryrefslogtreecommitdiff
path: root/ovsdb/file.c
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2011-03-28 12:59:18 -0700
committerBen Pfaff <blp@nicira.com>2011-03-31 16:43:51 -0700
commitff9f6644cb79d3ea5271c783704eb5092f503612 (patch)
tree186b2664f8eea9e9fc000a8647a67e7d68d5a347 /ovsdb/file.c
parent42a49b96013c6a149ad0bdd9799b22db59630ae7 (diff)
downloadopenvswitch-ff9f6644cb79d3ea5271c783704eb5092f503612.tar.gz
ovsdb: Raise database corruption log level from warning to error.
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.
Diffstat (limited to 'ovsdb/file.c')
-rw-r--r--ovsdb/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ovsdb/file.c b/ovsdb/file.c
index 9f0ab2804..1425bebec 100644
--- a/ovsdb/file.c
+++ b/ovsdb/file.c
@@ -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);