summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8fc1bf9)
raw | patch | inline | side by side (parent: 8fc1bf9)
author | Marc Fournier <marc.fournier@camptocamp.com> | |
Thu, 25 Feb 2016 10:22:18 +0000 (11:22 +0100) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Thu, 25 Feb 2016 10:22:18 +0000 (11:22 +0100) |
Having this enabled makes collectd's stdout and stderr very noisy. From
now on, only activate this flag when collectd is built with
--enable-debug.
Thanks to Eric Sandeen for mentioning this problem on IRC.
now on, only activate this flag when collectd is built with
--enable-debug.
Thanks to Eric Sandeen for mentioning this problem on IRC.
src/modbus.c | patch | blob | history |
diff --git a/src/modbus.c b/src/modbus.c
index b5d1e251960534be10793aeb7c44000d16acb225..7349dc564976b2a91aa44b7bb760e8d33a9bf4e0 100644 (file)
--- a/src/modbus.c
+++ b/src/modbus.c
if (host == NULL)
return (EINVAL);
+#if COLLECT_DEBUG
modbus_set_debug (&host->connection, 1);
+#endif
/* We'll do the error handling ourselves. */
modbus_set_error_handling (&host->connection, NOP_ON_ERROR);
return (-1);
}
+#if COLLECT_DEBUG
modbus_set_debug (host->connection, 1);
+#endif
/* We'll do the error handling ourselves. */
modbus_set_error_recovery (host->connection, 0);