These are chat archives for TheHolyWaffle/TeamSpeak-3-Java-API

26th
Jul 2016
Henny022
@Henny022
Jul 26 2016 19:31
I started programming my TS3 Bot today and this API helped me a lot.
But the repeating whoami fills my console, and its a bit to much, so can i disable that somewhere?
undefin3dd
@undefin3dd
Jul 26 2016 19:34
@Henny022 when setting TS3Config just set "setDebugLevel" on "Level.OFF"
Henny022
@Henny022
Jul 26 2016 19:34
thanks
undefin3dd
@undefin3dd
Jul 26 2016 19:34
You're Welcome :D
Henny022
@Henny022
Jul 26 2016 20:10
is there a debuc level, where i can see the output of my events, but not the whoami?
Roger Baumgartner
@rogermb
Jul 26 2016 20:29
@Henny022 Uh, no, but you can install your own logging handlers to do that filtering - or you could just route the output to a file instead of system.out with the option on TS3Config
Henny022
@Henny022
Jul 26 2016 20:30
ok
my problem is, if i am testimg the events, their outputs soon get lost within all the whoami, so its hard to find the right ones again
and there is no way to disable the call of whoami without breaking everything?
Roger Baumgartner
@rogermb
Jul 26 2016 20:33
Nope. Those whoamis are only sent if there has not been any other command sent for a whole minute. In that case, the API automatically sends a command so the TS3 server doesn't kick us for inactivity
Henny022
@Henny022
Jul 26 2016 20:34
ok thanks for the help
Roger Baumgartner
@rogermb
Jul 26 2016 21:02

@Henny022 So I just looked stuff up and it doesn't look like you can currently add your own logging handlers, at least with the public API. You could still do it via reflection, though.

I think this seems like quite the oversight on my part. I'll reflect on (sorry for the pun) how this should be handled and add something to the API soon™

Henny022
@Henny022
Jul 26 2016 21:17
till then i will try to ad a simple if to the existing handler for testing
Roger Baumgartner
@rogermb
Jul 26 2016 21:19
Yeah, just check the source of TS3Api to get the field name of the logger. Once you have that, you can adjust everything to your liking
Henny022
@Henny022
Jul 26 2016 22:29
Its done with a simple if condition, maybe you could ad a config option for this im sure im not the only one bothered by this
Roger Baumgartner
@rogermb
Jul 26 2016 22:34
Well, I'd rather not. Users can call TS3Api.whoAmI too, not just the keep alive thread itself. Moreover, it makes it too easy for the log to omit important information that could be needed for debugging
And this is the first time that issue has come up, as well
Most people just turn off all debugging information for when they actually deploy their application
Henny022
@Henny022
Jul 26 2016 22:39
I just need the debugging form my testing so it i couldn't just turn it of.
Well keep up the good work with this API
Roger Baumgartner
@rogermb
Jul 26 2016 23:01
Thanks, I appreciate it :smile:
Henny022
@Henny022
Jul 26 2016 23:03
I'll go to sleep for today, I'll resume my programming tomorrow. I'll come back here if other questions appear
Roger Baumgartner
@rogermb
Jul 26 2016 23:04
Yeah, I'll have to sleep soon, too ^^ But before I do that, I'll have to answer to some people who have commented on some issues over on GitHub
Cyas!
Henny022
@Henny022
Jul 26 2016 23:05
Hopefully you can help them more than i were able to