Hello,
Please file small attach which allows on/off too for the various
logging options. It helps a lot when migrating from openais to
corosync/openais.
Thanks,
Dejan
diff -urN corosync-1.2.0.orig/exec/mainconfig.c corosync-1.2.0/exec/mainconfig.c
--- corosync-1.2.0.orig/exec/mainconfig.c 2010-01-27 12:22:07.318623000 +0100
+++ corosync-1.2.0/exec/mainconfig.c 2010-01-27 12:22:45.619123000 +0100
@@ -279,7 +279,7 @@
mode = logsys_config_mode_get (subsys);
- if (strcmp (value, "yes") == 0) {
+ if (strcmp (value, "yes") == 0 || strcmp (value, "on") == 0) {
mode |= mode_mask;
if (logsys_config_mode_set(subsys, mode) < 0) {
sprintf (formatted_error_reason, "unable to set mode %s", objdb_key);
@@ -287,7 +287,7 @@
return -1;
}
} else
- if (strcmp (value, "no") == 0) {
+ if (strcmp (value, "no") == 0 || strcmp (value, "off") == 0) {
mode &= ~mode_mask;
if (logsys_config_mode_set(subsys, mode) < 0) {
sprintf (formatted_error_reason, "unable to unset mode %s", objdb_key);
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais