Skip to content

Conversation

@psafont
Copy link
Member

@psafont psafont commented Oct 4, 2022

This means that now xensource.log will contain the reason that produced
these exceptions

Reported by @xennifer

Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
This means that now xensource.log will contain the reason that produced
these exceptions

Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>

let () =
Printexc.register_printer (function
| Service_failed (service, reason) ->
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This installs a printer for an existing exception.

| "host", "https_only" ->
Some "22.26.0-next"
Some "22.27.0"
| "host", "last_software_update" ->
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want this as part of the PR?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it's not part of this PR it will need to go in independently because anybody that builds on top of master will get these changes

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it is good to include these in whatever PR comes after the tag.

@robhoes robhoes merged commit dba379d into xapi-project:master Oct 4, 2022
@psafont psafont deleted the private/paus/print-service-failures branch October 4, 2022 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants