Update of /cvsroot/monetdb/clients/src/mapilib
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv15025

Modified Files:
        Mapi.mx 
Log Message:
By giving a NULL second argument to mapi_log it is now possible to
switch off logging.


Index: Mapi.mx
===================================================================
RCS file: /cvsroot/monetdb/clients/src/mapilib/Mapi.mx,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- Mapi.mx     28 Aug 2007 09:10:23 -0000      1.21
+++ Mapi.mx     28 Aug 2007 09:36:55 -0000      1.22
@@ -1405,8 +1405,13 @@
 mapi_log(Mapi mid, const char *nme)
 {
        mapi_clrError(mid);
-       if (mid->tracelog)
+       if (mid->tracelog) {
                stream_close(mid->tracelog);
+               stream_destroy(mid->tracelog);
+               mid->tracelog = NULL;
+       }
+       if (nme == NULL)
+               return MOK;
        mid->tracelog = open_wastream(nme);
        if (mid->tracelog == NULL || stream_errnr(mid->tracelog)) {
                if (mid->tracelog)


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins

Reply via email to