try to log a stack, if none, log the error