aboutsummaryrefslogtreecommitdiff
path: root/tests/test-reconnect.c
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2011-07-28 10:19:42 -0700
committerJustin Pettit <jpettit@nicira.com>2011-08-01 13:23:19 -0700
commitc1a543a8d6d2847983b6b0defd1e19777da85715 (patch)
tree32c38ed3a899a4911e2337a0fe7e2f426bf23a83 /tests/test-reconnect.c
parent733a287e17bf3764bf31c9528c6b6d30aafdec5f (diff)
vlog: Add a new log level "off".
Until now, "emer" has effectively been "off" because no messages were ever logged at "emer" level. Justin points out that it is useful to use "emer" for messages that indicate a fatal error. This commit makes that change and adds a new "off" level to really turn off all logging to a facility.
Diffstat (limited to 'tests/test-reconnect.c')
-rw-r--r--tests/test-reconnect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-reconnect.c b/tests/test-reconnect.c
index fae0f178..494046cc 100644
--- a/tests/test-reconnect.c
+++ b/tests/test-reconnect.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009, 2010 Nicira Networks.
+ * Copyright (c) 2009, 2010, 2011 Nicira Networks.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -47,7 +47,7 @@ main(void)
int old_time;
char line[128];
- vlog_set_levels(&VLM_reconnect, VLF_ANY_FACILITY, VLL_EMER);
+ vlog_set_levels(&VLM_reconnect, VLF_ANY_FACILITY, VLL_OFF);
now = 1000;
reconnect = reconnect_create(now);