File pacemaker-reduce-verbosity-developer-logging.patch of Package pacemaker.8397
commit f3e82cec10999738437e566e5092513de528c6e3
Author: Andrew Beekhof <andrew@beekhof.net>
Date: Tue Sep 26 22:14:20 2017 +1000
Log: Reduce verbosity of developer logging
diff --git a/lib/common/strings.c b/lib/common/strings.c
index 5856c1623..573a14b19 100644
--- a/lib/common/utils.c
+++ b/lib/common/utils.c
@@ -415,12 +415,12 @@ crm_compress_string(const char *data, int length, int max, char **result, unsign
#ifdef CLOCK_MONOTONIC
clock_gettime(CLOCK_MONOTONIC, &after_t);
- crm_info("Compressed %d bytes into %d (ratio %d:1) in %dms",
+ crm_trace("Compressed %d bytes into %d (ratio %d:1) in %ldms",
length, *result_len, length / (*result_len),
(after_t.tv_sec - before_t.tv_sec) * 1000 + (after_t.tv_nsec -
before_t.tv_nsec) / 1000000);
#else
- crm_info("Compressed %d bytes into %d (ratio %d:1)",
+ crm_trace("Compressed %d bytes into %d (ratio %d:1)",
length, *result_len, length / (*result_len));
#endif