logging goes to stdout now
[swftools.git] / lib / python / pyutils.c
index 389193e..95c222b 100644 (file)
@@ -36,8 +36,8 @@ void mylog(char*format, ...)
        buf[l-1] = 0;
        l--;
     }
-    fprintf(stderr, "[SWF] %s\n", buf);
-    fflush(stderr);
+    fprintf(stdout, "[SWF] %s\n", buf);
+    fflush(stdout);
 }
 
 #define PY_NONE Py_BuildValue("s", 0)
@@ -75,3 +75,8 @@ PyMethodDef* addMethods(PyMethodDef*obj1, PyMethodDef*obj2)
     //free(obj1)?
     return result;
 }
+void setVerbosity(int _verbose)
+{
+    verbose = _verbose;
+    mylog("setting verbosity to %d", verbose);
+}