turn off DEBUG output in mercurial version

11 views
Skip to first unread message

kevin

unread,
Jan 10, 2011, 7:32:43 PM1/10/11
to hugin and other free panoramic software
I noticed yesterday that the latest mercurial version is outputting
DEBUG, INFO, and TRACE lines to the commandline when run. I just did
a fresh clone of the repository, configured using this command:

cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DLIB_SUFFIX=64 -
DCMAKE_BUILD_TYPE=Default .

And I still get all the DEBUG, INFO, and TRACE output. Is there
something else I should try to turn it off? I've only had this happen
with the version I started using yesterday, previous versions I
haven't had this happen.

Thanks

Lukáš Jirkovský

unread,
Jan 11, 2011, 2:11:53 AM1/11/11
to hugi...@googlegroups.com
> --
> You received this message because you are subscribed to the Google Groups "Hugin and other free panoramic software" group.
> A list of frequently asked questions is available at: http://wiki.panotools.org/Hugin_FAQ
> To post to this group, send email to hugi...@googlegroups.com
> To unsubscribe from this group, send email to hugin-ptx+...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/hugin-ptx
>

Try DCMAKE_BUILD_TYPE=Release

kfj

unread,
Jan 11, 2011, 2:44:45 AM1/11/11
to hugin and other free panoramic software
Hi!

I also get this behaviour. I used -DCMAKE_BUILD_TYPE=Release, but the
problem persists. Maybe someone has hardcoded the DEBUG somewhere and
forgotten to take it out? For me it's fatal, because the stuff dumped
to cerr crashes my python module, which doesn't like the C++ code
using cerr/cout for some reason I haven't figured out yet.

Kay

kevin

unread,
Jan 11, 2011, 8:34:05 AM1/11/11
to hugin and other free panoramic software
On Jan 11, 2:44 am, kfj <_...@yahoo.com> wrote:
> Hi!
>
> I also get this behaviour. I used -DCMAKE_BUILD_TYPE=Release, but the
> problem persists. Maybe someone has hardcoded the DEBUG somewhere and
> forgotten to take it out? For me it's fatal, because the stuff dumped
> to cerr crashes my python module, which doesn't like the C++ code
> using cerr/cout for some reason I haven't figured out yet.
>
> Kay
>

I found it this morning, it's hardcoded in the util.h or utils.h
file. Not in front of my home machine to tell you which, just
remember it was name one of those. Just the DEBUG_TRACE, etc defines
are the blank ones to turn it off. I commented out the DEBUG_ ones
and uncommented the blank ones and it's not printing out all the DEBUG
info now.

kfj

unread,
Jan 11, 2011, 12:52:48 PM1/11/11
to hugin and other free panoramic software


On 11 Jan., 14:34, kevin <ke...@bluelavalamp.net> wrote:
> On Jan 11, 2:44 am, kfj <_...@yahoo.com> wrote:
>
> > Hi!

> I found it this morning, it's hardcoded in the util.h or utils.h
> file.  Not in front of my home machine to tell you which, just
> remember it was name one of those.  Just the DEBUG_TRACE, etc defines
> are the blank ones to turn it off.  I commented out the DEBUG_ ones
> and uncommented the blank ones and it's not printing out all the DEBUG
> info now.

Thank you for that! It's in hugin.hg/src/hugin_base/hugin_utils/
utils.h as you say. I suppose it's this section:

//#ifdef DEBUG
// debug trace
#define DEBUG_TRACE(msg) { std::cerr << "TRACE " << DEBUG_HEADER
<< msg << std::endl; }
// low level debug info
#define DEBUG_DEBUG(msg) { std::cerr << "DEBUG " << DEBUG_HEADER
<< msg << std::endl; }
// informational debug message,
#define DEBUG_INFO(msg) { std::cerr << "INFO " << DEBUG_HEADER <<
msg << std::endl; }
// major change/operation should use this
#define DEBUG_NOTICE(msg) { std::cerr << "NOTICE " << DEBUG_HEADER
<< msg << std::endl; }
//#else
// #define DEBUG_TRACE(msg)
// #define DEBUG_DEBUG(msg)
// #define DEBUG_INFO(msg)
// #define DEBUG_NOTICE(msg)
//#endif

Someone has just commented out the switch and hardcoded debug messages
on.
Grrr....
But at least it made me notice another problem I would have never seen
if this hadn't happened, so it wasn't all just a big waste of time
(but mainly... :(

Kay

kevin

unread,
Jan 11, 2011, 12:59:57 PM1/11/11
to hugin and other free panoramic software
Yup, that's it! I commented out all the debug message lines and
uncommented the four blank ones on the bottom. Works for the time
being till a fix is put in.
Reply all
Reply to author
Forward
0 new messages