Removing login exception from logs

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

Hassan Khallouf
Posts: 41
Joined: 06 Jul 2017, 04:35

Removing login exception from logs

Postby Hassan Khallouf » 14 Oct 2018, 13:08

Hello
I was wondering if there is a way to not log login exceptions (SFSLoginException)
we have implemented a global exception listeners for logs and other stuff, but the way SFS implements the SFS Login exception is that you have to throw the exception to make the user fail to login

this is flodding our analytics tool and the logs file, the login exceptions is by far the most exception being fired, is there away to not send this to the logs?

small example in Event Handler

Code: Select all

        try {
            handle
        } catch (Exception e) {
            if(e instanceof SFSLoginException)
                throw (SFSLoginException)e; // in order to raise the login failed event, the exception should be thrown not handled
            else
                e.printStackTrace();
        }
User avatar
Lapo
Site Admin
Posts: 23009
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Removing login exception from logs

Postby Lapo » 15 Oct 2018, 08:36

Hi,
sorry, there is no system at the moment to filter out specific exceptions from the log files, other than switching the logging level.

Cheers
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: Google [Bot] and 75 guests