tempesta-tech / tempesta-test

Test suite for Tempesta FW
11 stars 5 forks source link

Adding datetime logs to FW output, proposition #671

Closed KonsKo closed 2 months ago

KonsKo commented 2 months ago

I have added simple datetime output to FW logs. I think it may be helpful for debugging purposes.

Example of new output:

[Sep,04,24 09:59:19,735468]
----------------------------------------------------------------------
Running functional tests...
----------------------------------------------------------------------
[Sep,04,24 09:59:19,735498]
[Sep,04,24 09:59:19,736092]     Run command 'echo "Start test: t_frang.test_http_methods.FrangHttpMethodsTestCase.test_not_accepted_request_shipping_cfg_TRACE" > /dev/kmsg' on host localhost with environment {}[Sep,04,24 09:59:19,736125]
[Sep,04,24 09:59:19,737804] test_not_accepted_request_shipping_cfg_TRACE (t_frang.test_http_methods.FrangHttpMethodsTestCase)[Sep,04,24 09:59:19,737870]  ... [Sep,04,24 09:59:19,738023]       Init test case...[Sep,04,24 09:59:19,738065]
[Sep,04,24 09:59:19,738240]     Run command 'date +%s.%N' on host localhost with environment {}[Sep,04,24 09:59:19,738267]
[Sep,04,24 09:59:19,745246]     Run command 'date +%s.%N' on host localhost with environment {}[Sep,04,24 09:59:19,745264]
[Sep,04,24 09:59:19,746808]     Run command 'sysctl --values net.core.message_cost' on host localhost with environment {}[Sep,04,24 09:59:19,746834]
[Sep,04,24 09:59:19,748246]     Run command 'sysctl -w net.core.message_cost=0' on host localhost with environment {}[Sep,04,24 09:59:19,748279]
[Sep,04,24 09:59:19,751823]     Deproxy: StaticDeproxyServer None: Start on 127.0.0.3:8000[Sep,04,24 09:59:19,751861]
[Sep,04,24 09:59:19,751928]     Run command 'netstat -tlnp' on host localhost with environment {}[Sep,04,24 09:59:19,751954]
[Sep,04,24 09:59:19,772892]     Run command 'date +%s.%N' on host localhost with environment {}[Sep,04,24 09:59:19,772913]
[Sep,04,24 09:59:19,774611]     Starting TempestaFW on localhost[Sep,04,24 09:59:19,774636]
[Sep,04,24 09:59:19,774677]     Tempesta config content: