[NEXUS-6072] Log stack trace only on debug level

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>