From: masakih Date: Mon, 12 Oct 2015 01:12:33 +0000 (+0900) Subject: デバッグ用ログ出力を変更 X-Git-Tag: 1.3b15~6 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=de521edc276fc1aeacedefc86edc988269641d48;p=kcd%2FKCD.git デバッグ用ログ出力を変更 APIの時のみ出力するように変更 API名を出力するように変更 --- diff --git a/KCD/HMJSONReciever.m b/KCD/HMJSONReciever.m index cb5bc358..6dd79b62 100644 --- a/KCD/HMJSONReciever.m +++ b/KCD/HMJSONReciever.m @@ -116,7 +116,15 @@ //- (void)customHTTPProtocol:(CustomHTTPProtocol *)protocol logWithFormat:(NSString *)format arguments:(va_list)argList //{ -// [[NSApp delegate] logLineReturn:@"%@", [[NSString alloc] initWithFormat:format arguments:argList]]; +// NSURL *url = protocol.request.URL; +// NSString *path = url.path; +// NSArray *pathComponents = [path pathComponents]; +// if(![pathComponents containsObject:@"kcsapi"]) { +// return; +// } +// NSString *log = [[NSString alloc] initWithFormat:format arguments:argList]; +// log = [NSString stringWithFormat:@"API: %@,Description: %@", path.lastPathComponent, log]; +// [[NSApp delegate] logLineReturn:@"%@", log]; //}