startup time in a weird format
Last message on shutdown prints this message and I can't understand the format
INFO - startup time: 9892 [com.nubits.nubot.bot.NuBotBase:302]
Comments (10)
-
-
oh my bad. this is correct: it's the time in milliseconds it took for startup
-
- changed status to resolved
-
renamed the variable to SessionManager.startupDuration to make it clear
-
reporter - changed status to open
I still see the very same output message logged in stdout ::
15:26:15.812 [qtp274209419-28 - //localhost:4567/startstop] INFO - startup time: 13116 [com.nubits.nubot.bot.NuBotBase:302]
It is not clear from this message alone (not talking about src) what does it indicate. Either trace it or make it human readable
-
done.
LOG.info("startup duration [msec]: " + SessionManager.startupDuration);
-
reporter I still do not understand why we provide this info at shutdown :) Does it represent how long did it take to startup the bot in ms?
-
yes - perhaps verbose it? idea is to provide some rough statistics for debugging. for example if startupduration was a long time, that might indicate some problem at the beginning etc. one also see total number of orders submitted. one could add a bunch of parameters which describe the session for user purposes or debugging purposes.
-
reporter Okd! then we can LOG.debug as you suggest
-
- changed status to resolved
- Log in to comment
this is a bug. should be normal System time.