Skip to content

Commit 36b458a

Browse files
committed
Print log only when DEBUG is on.
1 parent 750c35d commit 36b458a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

STNetTaskQueue/STNetTaskQueueLog.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,15 @@ @implementation STNetTaskQueueLog
1212

1313
+ (void)log:(NSString *)content, ...
1414
{
15+
#ifdef DEBUG
1516
if (!content) {
1617
return;
1718
}
1819
va_list args;
1920
va_start(args, content);
2021
NSLogv([NSString stringWithFormat:@"[STNetTaskQueue] %@", content], args);
2122
va_end(args);
23+
#endif
2224
}
2325

2426
@end

0 commit comments

Comments
 (0)