Skip to content

Conversation

@psafont
Copy link
Member

@psafont psafont commented Sep 30, 2021

Xcp_service used to be able to configure where squeezed logged to but it doesn't seem to work anymore.
Set the facility to local5 which logs to xensource.log

I've taken the liberty to change the tests to alcotest to avoid using the same (flawed) logging facilities for the testing code and the tested code.

@psafont psafont changed the title CA-357785: squeezed logs to xensource.log info and higher CA-357785: squeezed logs to xensource.log, block debug loglevel Sep 30, 2021

let _ =
Debug.set_facility Syslog.Local5 ;
Debug.set_level Syslog.Info ;
Copy link
Member

Choose a reason for hiding this comment

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

I think that almost everything is logged as debug, so this may be a bit harsh. The facility is the main one to get things out of daemon.log. But what about the logging to stdout?

Copy link
Member Author

Choose a reason for hiding this comment

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

I've removed the custom logging facilities, it still could be better by changing the "verbose" variables passed around.

@psafont psafont changed the title CA-357785: squeezed logs to xensource.log, block debug loglevel CA-357785: squeezed logs to xensource.log Oct 1, 2021
@psafont psafont marked this pull request as ready for review October 1, 2021 09:29
This solves the issue that the output infrastructure is shared between
the testing code and the tested code

Also add squeezed tests to its package

Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Xcp_service used to be able to configure where squeezed logged to but it
doesn't seem to work anymore. Set the facility to local5 which syslog
directs to xensource.log

Also replaces the custom logging facility that logged to stdout by
default and fixes the name of the module in the logs

Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
@robhoes robhoes merged commit 2a66192 into xapi-project:master Oct 1, 2021
@psafont psafont deleted the nolog branch October 1, 2021 14:30
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