CORE-4429: converted log-stack-trace to a macro