Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 151437 - net-im/jabberd-1.4.4-r3 has excessive debugging messages
Summary: net-im/jabberd-1.4.4-r3 has excessive debugging messages
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Krzysztof Pawlik (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 149358
  Show dependency tree
 
Reported: 2006-10-15 02:30 UTC by Paul Bredbury
Modified: 2006-10-15 02:51 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Bredbury 2006-10-15 02:30:08 UTC
Hi, jabberd by default outputs debugging messages to the console every 5 minutes, thanks to this line in jsm/modules/mod_stat.c:

register_beat(300, mod_stat_write, (void*)stat_data);

I think that's terribly annoying ;)  It looks like it can be turned off or diverted using jabberd.xml, but it's not clear how. The initscript mystically contains "-Z shutupdebug", which presumably requires a change to jabberd.xml before it has any effect.

My simple fix is to turn off this excessive debug info, by adding this command to the ebuild:

	sed -i \
		-e "s:register_beat:// register_beat:" \
		jsm/modules/mod_stat.c

The ebuild already contains a "debug" USE flag, so perhaps there could be a "5mindebug" USE flag for anyone who wants this feature :)
Comment 1 Krzysztof Pawlik (RETIRED) gentoo-dev 2006-10-15 02:43:35 UTC
Also call to js_mapi_register() (or whole void mod_stat()) (line 132 of mod_stat.c) could be commented out. Several ebuilds have already 'stats' (or alike) flag.

I'll probably add 'stats' to IUSE, and if it's not set comment whole content to mod_stat() function in mod_stat.c - that will disable statistics, not only printing it.
Comment 2 Krzysztof Pawlik (RETIRED) gentoo-dev 2006-10-15 02:51:06 UTC
Ok, I won't make that ebuild change, as commenting out:

<mod_stat>/usr/lib/libjabberdsm.so</mod_stat>

from:

<load main="jsm">
...
</load>

works as intended.