Project

General

Profile

can not find AbstractMessageReceiver function log info.

Raylin lin
Added about 5 years ago

hi,all:

I am reading tigase server code,and found AbstractMessageReceiver start function like this:

@Override
    public void start() {
        if (log.isLoggable(Level.FINER)) {
            log.log(Level.INFO, "{0}: starting queue management threads ...", getName());
        }
        startThreads();
    }

I have checked the tigase-console.log and tigase.log.0, and could not find any “starting queue management threads”log info,Does that mean this start function would not be called when the tigase server is running? thank you.


Replies (5)

Avatar?id=6023&size=32x32

Added by Artur Hefczyc TigaseTeam about 5 years ago

You need to enable logging for "debug" package to have logging from this class. Please note, methods from this class are called very frequently. If you enable logging for it it will considerably slowdown your system and you files will be full of log entries from this class. If you have a small development system this is OK, of course.

This is why it is not enabled by default.

Added by Raylin lin about 5 years ago

hi Artur Hefczyc:

I've added "--debug=server,xmpp.XMPPIOService,db" in etc/init.properties, but still can not find any "starting queue management threads" info.

Added by Wojciech Kapcia TigaseTeam about 5 years ago

It is debug package i.e. your configuration should look like this:

--debug=server,xmpp.XMPPIOService,db,debug

Added by Raylin lin about 5 years ago

hi Artur Hefczyc:

     I've added "--debug=server,xmpp.XMPPIOService,db,debug" in etc/init.properites, got more that 123k log(2 minutes after the server started),but still can not find this log info.
Avatar?id=6023&size=32x32

Added by Artur Hefczyc TigaseTeam about 5 years ago

Do you get any other log entries from * AbstractMessageReceiver* class? The reason why this particular entry (and a few others) may not show is because this code is executed very early at the Tigase XMPP Server startup time when the logging configuration is not loaded yet, hence this entries might be missing.

    (1-5/5)