Enable more pybindgen logging
authorGustavo Carneiro <gjcarneiro@gmail.com>
Sun, 02 Mar 2014 20:44:20 +0000
changeset 10640 4275dcaa1337
parent 10639 6600e199f788
child 10641 b372889aadef
Enable more pybindgen logging
bindings/python/ns3modulegen-modular.py
--- a/bindings/python/ns3modulegen-modular.py	Sun Mar 02 12:24:39 2014 +0000
+++ b/bindings/python/ns3modulegen-modular.py	Sun Mar 02 20:44:20 2014 +0000
@@ -6,6 +6,8 @@
 from pybindgen.module import MultiSectionFactory
 import ns3modulegen_core_customizations
 
+import logging
+
 pybindgen.settings.wrapper_registry = pybindgen.settings.StdMapWrapperRegistry
 
 import traceback
@@ -55,6 +57,9 @@
 
 
 def main(argv):
+    logging.basicConfig()
+    logging.getLogger("pybindgen.typehandlers").setLevel(logging.DEBUG)
+
     module_abs_src_path, target, extension_name, output_cc_file_name = argv[1:]
     module_name = os.path.basename(module_abs_src_path)
     out = MyMultiSectionFactory(output_cc_file_name)