Hi Steven,

as discussed in a previous thread logsys_config_subsys_set does not allow to set a lower priority (for example switching from LOG_LEVEL_DEBUG to LOG_LEVEL_INFO).

This behaviour can be problematic if we ask people to switch debugging on and then they can't turn it off.

The patch in attachment allows logsys to roll back to whatever priority the user wants.

Please apply

Fabio

--
I'm going to make him an offer he can't refuse.
Index: exec/logsys.c
===================================================================
--- exec/logsys.c       (revision 1574)
+++ exec/logsys.c       (working copy)
@@ -184,10 +184,6 @@
                if (strcmp (logsys_loggers[i].subsys, subsys) == 0) {
                        logsys_loggers[i].tags = tags;
                        logsys_loggers[i].priority = priority;
-
-                       if (priority > logsys_loggers[i].priority) {
-                               logsys_loggers[i].priority = priority;
-                       }
                        break;
                }
        }
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to