Skip to content

Logs do not provide comparable information

(Part of epic https://project.squashtest.org/browse/SQMAP-928)

Current situation

image

In the above log sample, the [Fatal Error] line is generated by a Java service with no source indication and no timestamp. The 2022-02-22 16:33:19.581 ERROR 55 -- ... line is generated by a Java service too, in a different format, with a timestamp but still no source indication.

Desired outcome

Logs in a similar format, with a timestamp and a source indication.

Current situation

The TM publisher generates logs for the test ID it publishes, but the TM generator does not generate logs announcing the test ID it executes:

2022-02-11 14:06:04.092  INFO 40 --- [pool-1-thread-2] s.t.s.p.a.SuiteDefinitionAcknowledgeTask : AutomatedSuite 8a53868e7ee64bb3017ee91af0320018 test executions registered in SquashTMPublisher, waiting for their results.

vs.

2022-02-11 15:36:01.999  INFO 40 --- [pool-1-thread-1] o.s.t.s.p.application.PublicationTask    : Result of test id=379164 execution published to Squash TM
2022-02-11 15:36:02.164  INFO 40 --- [pool-1-thread-4] o.s.t.s.p.application.PublicationTask    : Result of test id=379157 execution published to Squash TM
2022-02-11 15:36:02.319  INFO 40 --- [pool-1-thread-5] o.s.t.s.p.application.PublicationTask    : Result of test id=379118 execution published to Squash TM
2022-02-11 15:36:02.495  INFO 40 --- [pool-1-thread-3] o.s.t.s.p.application.PublicationTask    : Result of test id=379144 execution published to Squash TM
2022-02-11 15:36:02.802  INFO 40 --- [pool-1-thread-5] o.s.t.s.p.application.PublicationTask    : Result of test id=379226 execution published to Squash TM
2022-02-11 15:36:02.803  INFO 40 --- [pool-1-thread-2] o.s.t.s.p.application.PublicationTask    : Result of test id=379112 execution published to Squash TM
2022-02-11 15:36:03.016  INFO 40 --- [pool-1-thread-4] o.s.t.s.p.application.PublicationTask    : Result of test id=379115 execution published to Squash TM
2022-02-11 15:36:03.207  INFO 40 --- [pool-1-thread-1] o.s.t.s.p.application.PublicationTask    : Result of test id=379161 execution published to Squash TM

Desired outcome

Similar informations, so that problem investigation is easier (or even possible).

Edited by Laurent Mazuré