From 3e5a01a0096bead115814b71173db7430c2fba86 Mon Sep 17 00:00:00 2001 From: Marat Al Date: Mon, 4 Dec 2023 15:56:11 +0100 Subject: [PATCH 1/2] Added ARTPrint macros for easier debug. --- Source/PrivateHeaders/Ably/ARTInternalLog.h | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/PrivateHeaders/Ably/ARTInternalLog.h b/Source/PrivateHeaders/Ably/ARTInternalLog.h index c2eba7c73..bfb5821e4 100644 --- a/Source/PrivateHeaders/Ably/ARTInternalLog.h +++ b/Source/PrivateHeaders/Ably/ARTInternalLog.h @@ -20,6 +20,7 @@ #define ARTLogInfo(logger, format, ...) ARTLog(logger, ARTLogLevelInfo, format, ##__VA_ARGS__) #define ARTLogWarn(logger, format, ...) ARTLog(logger, ARTLogLevelWarn, format, ##__VA_ARGS__) #define ARTLogError(logger, format, ...) ARTLog(logger, ARTLogLevelError, format, ##__VA_ARGS__) +#define ARTPrint(logger, format, ...) ARTLog(logger, ARTLogLevelNone, format, ##__VA_ARGS__) NS_ASSUME_NONNULL_BEGIN From 81aa9cf5a3edbb2145d650b256e78006b5ecd0ac Mon Sep 17 00:00:00 2001 From: Marat Al Date: Thu, 7 Dec 2023 16:37:49 +0100 Subject: [PATCH 2/2] Added usage comment for the new macros. --- Source/PrivateHeaders/Ably/ARTInternalLog.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/PrivateHeaders/Ably/ARTInternalLog.h b/Source/PrivateHeaders/Ably/ARTInternalLog.h index bfb5821e4..5a544c344 100644 --- a/Source/PrivateHeaders/Ably/ARTInternalLog.h +++ b/Source/PrivateHeaders/Ably/ARTInternalLog.h @@ -20,6 +20,9 @@ #define ARTLogInfo(logger, format, ...) ARTLog(logger, ARTLogLevelInfo, format, ##__VA_ARGS__) #define ARTLogWarn(logger, format, ...) ARTLog(logger, ARTLogLevelWarn, format, ##__VA_ARGS__) #define ARTLogError(logger, format, ...) ARTLog(logger, ARTLogLevelError, format, ##__VA_ARGS__) +/** + This one is for local debugging only. You can replace other log macroses with it when needed and immidiatly print its message into the console without changing logLevel. Do not commit such changes. + */ #define ARTPrint(logger, format, ...) ARTLog(logger, ARTLogLevelNone, format, ##__VA_ARGS__) NS_ASSUME_NONNULL_BEGIN