Skip to content

Commit

Permalink
close nslog
Browse files Browse the repository at this point in the history
  • Loading branch information
rosen committed Jan 18, 2018
1 parent ad2a35e commit d5c877d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Demo/OOMDetectorDemo/MyOOMDataManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ + (instancetype)getInstance

- (void)performanceData:(NSDictionary *)data completionHandler:(void (^)(BOOL))completionHandler
{
NSLog(@"%@ \n", data);
// NSLog(@"%@ \n", data);

completionHandler(YES);
}

- (void)fileData:(NSData *)data extra:(NSDictionary<NSString *,NSString *> *)extra type:(QQStackReportType)type completionHandler:(void (^)(BOOL))completionHandler
{
NSLog(@"\n %@ \n %ld \n %@\n", extra, type, [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding]);
// NSLog(@"\n %@ \n %ld \n %@\n", extra, type, [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding]);

if (type == QQStackReportTypeOOMLog) {
// 此处为了Demo演示需要传参数NO,NO表示我们自己业务对data处理尚未完成或者失败,OOMDetector内部暂时不会删除临时文件
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ -(void)updateMemory
++flag;
if(maxMemory && flag >= 30){
if(maxMemory > _singleLoginMaxMemory){
NSLog(@"OOMStatisticsInfoCenter update maxMemory:%.2fMb",maxMemory);
// NSLog(@"OOMStatisticsInfoCenter update maxMemory:%.2fMb",maxMemory);
_singleLoginMaxMemory = maxMemory;
[self saveLastSingleLoginMaxMemory];
flag = 0;
Expand Down

0 comments on commit d5c877d

Please sign in to comment.