Log traceback from API when debug is off

Ticket:	#6839