Skip to content

Commit a12ce4d

Browse files
committed
log utils default to none
1 parent 2fb1dd8 commit a12ce4d

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

QiniuSDK/Utils/QNLogUtil.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88

99
#import "QNLogUtil.h"
1010

11-
#if DEBUG
12-
static QNLogLevel _level = QNLogLevelVerbose;
13-
#else
11+
//#if DEBUG
12+
//static QNLogLevel _level = QNLogLevelVerbose;
13+
//#else
1414
static QNLogLevel _level = QNLogLevelNone;
15-
#endif
15+
//#endif
1616

1717
static BOOL _enableDate = false;
1818
static BOOL _enableFile = true;

QiniuSDKTests/QNUploadBaseTest.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
// Copyright © 2020 Qiniu. All rights reserved.
77
//
88

9+
#import "QNLogUtil.h"
910
#import "QNUploadBaseTest.h"
1011

1112
@interface QNUploadBaseTest()
@@ -15,6 +16,8 @@ @implementation QNUploadBaseTest
1516

1617
- (void)setUp {
1718
[super setUp];
19+
[QNLogUtil setLogLevel:QNLogLevelInfo];
20+
1821
self.defaultOption = [[QNUploadOption alloc] initWithMime:nil
1922
progressHandler:^(NSString *key, float percent) {
2023
NSLog(@"== key:%@ percent:%f", key, percent);

0 commit comments

Comments
 (0)