Coder Social home page Coder Social logo

afnetworkinglogger's People

Contributors

bitdeli-chef avatar stanislaw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

olexth

afnetworkinglogger's Issues

Crash

I have the following crash in Fabric, does not mean much to me ..

Crashed: com.apple.main-thread
SIGABRT ABORT 0x0000000193d57270
 raw
0   libsystem_kernel.dylib  
__pthread_kill + 8
1
libsystem_pthread.dylib 
pthread_kill + 112
2
libsystem_c.dylib   
abort + 112
3
libsystem_malloc.dylib  
purgeable_ptr_in_use_enumerator + 406
4
libsystem_malloc.dylib  
free_tiny_botch + 84
5
CFNetwork   
HTTPMessage::ensureParserFinished() + 108
6
CFNetwork   
HTTPMessage::copyAllHeaderFields(__CFArray const**) + 28
7   CFNetwork   
-[NSHTTPURLResponse allHeaderFields] + 48
8

AFNetworkActivityLogger.m line 153
-[AFNetworkActivityLogger networkRequestDidFinish:]
9   CoreFoundation  
__CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 20
11  Foundation  
-[NSNotificationCenter postNotificationName:object:userInfo:] + 72
12

AFURLConnectionOperation.m line 486
__34-[AFURLConnectionOperation finish]_block_invoke
13  libdispatch.dylib   
_dispatch_call_block_and_release + 24
20  UIKit   
UIApplicationMain + 1488
21

main.m line 14
main
22
libdyld.dylib   
start + 4

IOS 8.0 deprecations

Looks line all calls -dataFromPropertyList:format:errorDescritpion in AFNetworkingLogGenerator needs to be updated with -dataWithPropertyList:format:options:error: for iOS 8.x support

Warning description:
'dataFromPropertyList:format:errorDescription:' is deprecated: first deprecated in iOS 8.0 - Use dataWithPropertyList:format:options:error: instead.

Fix logging of HTTP request bodies

Critical lines:

if (0 < HTTPBodyDataSize && HTTPBodyDataSize <= (1024 * 100)) {
    requestBodyString = [requestBodyString stringByAppendingString:[[NSString alloc] initWithData:HTTPBodyData encoding:NSUTF8StringEncoding]];
}

else if (HTTPBodyDataSize <= (1024 * 100)) {
    requestBodyString = [requestBodyString stringByAppendingString:@"Request body data is too large to be displayed..."];
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.