mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-05-06 17:32:52 +08:00
Implemented flexible logging solution utilizing the excellent LibComponentLogging library.
This commit is contained in:
@@ -44,10 +44,10 @@
|
||||
// NOTE - Since we have side-stepped the router, we need to
|
||||
// nest the param names under the model name ourselves
|
||||
[params setValue:self.body forParam:@"post[body]"];
|
||||
NSLog(@"Self Body: %@", self.body);
|
||||
RKLogDebug(@"Self Body: %@", self.body);
|
||||
if (_newAttachment) {
|
||||
NSData* data = UIImagePNGRepresentation(_newAttachment);
|
||||
NSLog(@"Data Size: %d", [data length]);
|
||||
RKLogDebug(@"Data Size: %d", [data length]);
|
||||
RKParamsAttachment* attachment = [params setData:data MIMEType:@"application/octet-stream" forParam:@"post[attachment]"];
|
||||
attachment.fileName = @"image.png";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user