General advice for trouble shooting / logging

HI.

I’m new to haproxy however I have everything working as needed. During testing I did a stupid mistake and specified the wrong CA certificate within “server ca-file”. Finding the root cause of this problem took me very long as the only thing I got was a " SC–" code and a http code of “503” within the logs there was nowhere a hint about anything wrong related to TLS.

To be prepared for future troubleshooting is there any advise what to do in such situations to get a hint that the problem is TLS related (dianostics / logs / whatever)?

Thanks for sharing your experience.

offbyone