Added tracebacks to debug logging for webhook exceptions.
Fixed var name in webhook handler.