Skip to content

Commit

Permalink
Merge pull request #1843 from ably/feature/debug-print
Browse files Browse the repository at this point in the history
Added ARTPrint macros for easier debug.
  • Loading branch information
maratal authored Dec 14, 2023
2 parents dee121a + 81aa9cf commit 5fb2d9a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/PrivateHeaders/Ably/ARTInternalLog.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
#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

Expand Down

0 comments on commit 5fb2d9a

Please sign in to comment.