OSSP CVS Repository

ossp - Difference in ossp-pkg/l2/l2_test.c versions 1.18 and 1.19
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/l2/l2_test.c 1.18 -> 1.19

--- l2_test.c    2001/09/12 13:05:39     1.18
+++ l2_test.c    2001/09/12 13:50:46     1.19
@@ -131,7 +131,7 @@
     if (l2_channel_open(chPrefix) != L2_OK)
         die("failed to open channel stack");
 
-    if (l2_stream_channel(st, chPrefix, L2_LEVEL_UPTO(L2_LEVEL_WARNING)) != L2_OK)
+    if (l2_stream_channel(st, chPrefix, L2_LEVEL_UPTO(L2_LEVEL_WARNING), L2_LEVEL_NONE) != L2_OK)
         die("failed to attach channel stack into stream");
 
     if ((chSyslog = l2_channel_create(&l2_handler_syslog)) == NULL)   /* Syslog */
@@ -145,7 +145,7 @@
     if (l2_channel_open(chSyslog) != L2_OK)
         die("failed to open channel stack");
 
-    if (l2_stream_channel(st, chSyslog, L2_LEVEL_UPTO(L2_LEVEL_WARNING)) != L2_OK)
+    if (l2_stream_channel(st, chSyslog, L2_LEVEL_UPTO(L2_LEVEL_WARNING), L2_LEVEL_NONE) != L2_OK)
         die("failed to attach channel syslog into stream");
 
 #ifdef WITH_SMTP
@@ -158,11 +158,11 @@
     if (l2_channel_open(chSmtp) != L2_OK)
         die("failed to open smtp channel");
 
-    if (l2_stream_channel(st, chSmtp, L2_LEVEL_UPTO(L2_LEVEL_ERROR)) != L2_OK)
+    if (l2_stream_channel(st, chSmtp, L2_LEVEL_UPTO(L2_LEVEL_ERROR), L2_LEVEL_NONE) != L2_OK)
         die("failed to attach smtp channel into stream");
 #endif
 
-    if (l2_stream_levels(st, L2_LEVEL_UPTO(L2_LEVEL_WARNING)) != L2_OK)
+    if (l2_stream_levels(st, L2_LEVEL_UPTO(L2_LEVEL_WARNING), L2_LEVEL_NONE) != L2_OK)
         die("failed to set global logging level");
     
     if (l2_stream_formatter(st, 'k', formatter, NULL) != L2_OK)

CVSTrac 2.0.1