summaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing')
-rw-r--r--src/testing/nuts.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/testing/nuts.h b/src/testing/nuts.h
index ce75fc66..6321b005 100644
--- a/src/testing/nuts.h
+++ b/src/testing/nuts.h
@@ -1,5 +1,5 @@
//
-// Copyright 2021 Staysail Systems, Inc. <info@staysail.tech>
+// Copyright 2024 Staysail Systems, Inc. <info@staysail.tech>
//
// This software is supplied under the terms of the MIT License, a
// copy of which should be located in the distribution where this
@@ -203,6 +203,12 @@ extern const char *nuts_client_crt;
#define NUTS_PROTO(x, y) (((x) << 4u) | (y))
+#define NUTS_ENABLE_LOG(level) \
+ do { \
+ nng_log_set_logger(nng_stderr_logger); \
+ nng_log_set_level(level); \
+ } while (0)
+
#ifdef __cplusplus
};
#endif