changing debug to info

31 views
Skip to first unread message

Miguel Angel Iglesias

unread,
Oct 8, 2009, 3:22:37 PM10/8/09
to jpos-...@googlegroups.com
Hello, this is probably a silly question, but anyway:

In my classes I have multiple .debug sentences that give me information abut what is happening, I thought that when I change the debug="true" to "false" in the TM this outputs would disappear from q2.log... but they haven't. I also look the log4j.properties, the 00_logger.xml and the wrapper.conf(in the logging part) but everything is set to INFO, so, why my debug messages still coming up?

btw, thy dont say "debug", but "trace", ie:

<log realm="notificar" at="Thu Oct 08 15:20:25 EDT 2009.664">
<trace>
Enviando el mensaje...
</trace>
</log>

thanks in advance

Alejandro Revilla

unread,
Oct 8, 2009, 3:52:15 PM10/8/09
to jpos-...@googlegroups.com
The debug=true at the TM level has nothing to do with the log, it just enables debugging of the TM itself.

You can use a participant-level configuration to enable/disable debugging.


Miguel Angel Iglesias

unread,
Oct 8, 2009, 4:23:01 PM10/8/09
to jpos-...@googlegroups.com
I guessed that you meant add this to the participant configuration in the TM:
<property name="debug" value="false"/>

But didn't work, did you mean something else?

Maybe the solution is to check, by hand, if the property exist, and if is true, then print the debug?
There is no builtin solution?

thanks

Alejandro Revilla

unread,
Oct 8, 2009, 4:31:18 PM10/8/09
to jpos-...@googlegroups.com
You need to check for that value in your code, i.e:

  if (cfg.getBoolean ("debug"))
     // do your debug statement.

Miguel Angel Iglesias

unread,
Oct 8, 2009, 4:32:17 PM10/8/09
to jpos-...@googlegroups.com
Ok, thanks
Reply all
Reply to author
Forward
0 new messages