]> git.ipfire.org Git - thirdparty/collectd.git/commit
Feature-redfish: enabling libredfish logging on collectd debug mode (#3907)
authorMathieu STOFFEL <mathieu.stoffel@atos.net>
Mon, 27 Sep 2021 14:37:05 +0000 (16:37 +0200)
committerGitHub <noreply@github.com>
Mon, 27 Sep 2021 14:37:05 +0000 (16:37 +0200)
commit69aabee7ccffa486218c327f7ebf3a6cdbe43851
tree78583ee76a004410f4fb5631be4db6da5432e00f
parentd41fa79b7fda9b67601a7d7880d8e4b91a4500ce
Feature-redfish: enabling libredfish logging on collectd debug mode (#3907)

Changelog: enabling libredfish logging on collectd debug mode

In order for `libredfish` to log internal information, which are more
than useful to debugging purposes, a printing function has to be
registered through a hook : a global function pointer named `gDebugFunc`.

The `plugin_log` function is registered as the logging function through
the aforementioned hook by the `redfish_init` function, when the
`--enable-debug` option is specified to the `configure` script.
src/redfish.c