Bug #91404 bootstrap log doesn't have timestamps
Submitted: 25 Jun 2018 9:32 Modified: 25 Jun 2018 10:27
Reporter: Pawel Mroszczyk Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Router Severity:S3 (Non-critical)
Version:8.0.11 OS:Any
Assigned to: CPU Architecture:Any

[25 Jun 2018 9:32] Pawel Mroszczyk
Description:
Bootstrap log doesn't have timestamps.  In case when several bootstraps were done, it's harder to tell where each one started/ended, and how long each stage of the operation took.

How to repeat:
Create a bootstrap conf file, analogous to:

[2 james@vitro72 11:25:25 /home/pmroszcz/tmp/Hudson_jobs_from_Andres_org/mysqlrouter_8012] cat boot.conf
[DEFAULT]
logging_folder = /export/home/tmp/james/router/mysqlrouter_8012/logs
[logger]
level = DEBUG

Run bootstrap using this config file:
[2 james@vitro72 11:26:01 /home/pmroszcz/tmp/Hudson_jobs_from_Andres_org/mysqlrouter_8012] mysqlrouter -B root@localhost:5000 -d /export/home/tmp/james/router/mysqlrouter_8012/router_conf -c boot.conf

Best run it several times for most dramatic effect :)  Logs have no timestamps making it harder to read them:
[2 james@vitro72 11:25:19 /home/pmroszcz/tmp/Hudson_jobs_from_Andres_org/mysqlrouter_8012] cat logs/mysqlrouter.log
<lots of output here, without timestamps>

Suggested fix:
IIRC, it's probably a matter of setting "raw" flag in the logger when logging bootstrap.  But not sure about this, I didn't check.
[25 Jun 2018 10:27] MySQL Verification Team
Hello Pawel,

Thank you for the report and feedback!

Thanks,
Umesh