print only the message of errors, unless debug env var is specified in which case dump stacks.