From 276ebfa924ca33ab760cd4e4a1ec21c0e8e240c7 Mon Sep 17 00:00:00 2001 From: Josh Wilson Date: Thu, 20 Dec 2007 00:19:26 +0000 Subject: [PATCH] adding logBlock --- direct/src/showbase/PythonUtil.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/direct/src/showbase/PythonUtil.py b/direct/src/showbase/PythonUtil.py index 0f89573f7f..19e6db9df9 100644 --- a/direct/src/showbase/PythonUtil.py +++ b/direct/src/showbase/PythonUtil.py @@ -3180,6 +3180,10 @@ class MiniLogSentry: self.log.exitFunction() del self.log +def logBlock(id, msg): + print '<< LOGBLOCK(%03d)' % id + print str(msg) + print '/LOGBLOCK(%03d) >>' % id import __builtin__ __builtin__.Functor = Functor @@ -3224,3 +3228,4 @@ __builtin__.choice = choice __builtin__.report = report __builtin__.MiniLog = MiniLog __builtin__.MiniLogSentry = MiniLogSentry +__builtin__.logBlock = logBlock