ejabberd - Comments for "Logging Question" https://www.ejabberd.im/node/3078 en Found https://www.ejabberd.im/node/3078#comment-53277 <p>Found it:</p> <p>ejabberd_listener.erl -- Commented out these lines:</p> <p>% case {inet:sockname(Socket), inet:peername(Socket)} of<br /> % {{ok, Addr}, {ok, PAddr}} -&gt;<br /> % ?INFO_MSG("(~w) Accepted connection ~w -&gt; ~w",<br /> % [Socket, PAddr, Addr]);<br /> % _ -&gt;<br /> % ok<br /> % end,</p> <p>If I could make a suggestion I would say have this print only in debug mode by default instead of Information level.<br /> Thanks<br /> Andy</p> Mon, 09 Jun 2008 17:00:30 +0000 FindAndy comment 53277 at https://www.ejabberd.im Thanks Badlop The following https://www.ejabberd.im/node/3078#comment-53276 <p>Thanks Badlop</p> <p>The following is some sample output:</p> <div class="codeblock"><code>=INFO REPORT==== 2008-06-05 16:06:24 ===<br />I(&lt;0.272.0&gt;:ejabberd_listener:112) : (#Port&lt;0.400&gt;) Accepted connection {{XXX,XXX,XXX,216},54354} -&gt; {{XXX,XXX,XXX,194},5222} <p>=INFO REPORT==== 2008-06-05 16:06:29 ===<br />I(&lt;0.272.0&gt;:ejabberd_listener:112) : (#Port&lt;0.404&gt;) Accepted connection {{XXX,XXX,XXX,206},55265} -&gt; {{XXX,XXX,XXX,194},5222}</p></code></div> Mon, 09 Jun 2008 14:28:46 +0000 FindAndy comment 53276 at https://www.ejabberd.im Only modifying source code https://www.ejabberd.im/node/3078#comment-53264 <div class="quote-msg"> <div class="quote-author"><em>FindAndy</em> wrote:</div> <p>Is there a way to filter out the messages so I only get the messages indicating wither a person logged in and not the communication chatter between the two nodes?</p></div> <p>In ejabberd 2.0.x the loglevel is set globally for all the node, and there's no way to set different loglevesl for different modules, or filter the messages.</p> <p>But if you can recompile ejabberd, it is easy to remove the lines in source code that annoy you.</p> <p>If you show here examples of the messages you don't want to be shown in loglevel-4, I can search the code that generates them and move to loglevel-5, and paste a patch so you can apply and recompile.</p> Fri, 06 Jun 2008 08:47:15 +0000 mfoss comment 53264 at https://www.ejabberd.im