Code: Select all
@Singleton
public class LoginEventHandler extends BaseServerEventHandler {
@Inject private Injector injector;
@Override
public void handleServerEvent(ISFSEvent e) throws SFSException {
System.out.println("LoginEventHandler.handleServerEvent debug");
}
}The message is not printed. I also tried the getLogger(), the Logger from the main class and even printing out exceptions ex.printStackTrace(). Nothing is visible in my console.
What is visible, is the normal System.out.println() call in the init method, but somehow not in the event handler. The event handler itself is working because it throws an exception on the client side, if i throw it there. with:
var errorData = new SFSErrorData(SFSErrorCode.LOGIN_BAD_PASSWORD);
throw new SFSLoginException("wrong password", errorData);
So: What is the issue there