Fix logic for ServiceServer stats logs

Merged Anthony Gauchy requested to merge hotfix/stats_logs_errors into release/2.4

Merge request reports