You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sh...@apache.org on 2012/06/15 21:18:25 UTC
ios commit: Fixes CB-864 - Failure in writing a large file blocks
Cordova
Updated Branches:
refs/heads/master 72c8f18b9 -> 7e579165d
Fixes CB-864 - Failure in writing a large file blocks Cordova
Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/commit/7e579165
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/tree/7e579165
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/diff/7e579165
Branch: refs/heads/master
Commit: 7e579165d1113769fefe32e54bc89760a05e17b8
Parents: 72c8f18
Author: Shazron Abdullah <sh...@apache.org>
Authored: Fri Jun 15 12:18:09 2012 -0700
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Fri Jun 15 12:18:09 2012 -0700
----------------------------------------------------------------------
CordovaLib/Classes/CDVViewController.m | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/7e579165/CordovaLib/Classes/CDVViewController.m
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/CDVViewController.m b/CordovaLib/Classes/CDVViewController.m
index 72dfde6..4c36587 100644
--- a/CordovaLib/Classes/CDVViewController.m
+++ b/CordovaLib/Classes/CDVViewController.m
@@ -785,7 +785,11 @@ BOOL gSplashScreenShown = NO;
[CDVInvokedUrlCommand commandFromObject:
[commandJson mutableObjectFromJSONString]]])
{
- NSLog(@"FAILED pluginJSON = %@",commandJson);
+ static NSUInteger maxLogLength = 1024;
+ NSString* commandString = ([commandJson length] > maxLogLength) ?
+ [NSString stringWithFormat:@"%@[...]", [commandJson substringToIndex:maxLogLength]] :
+ commandJson;
+ DLog(@"FAILED pluginJSON = %@", commandString);
}
}
@@ -815,6 +819,7 @@ BOOL gSplashScreenShown = NO;
- (BOOL) execute:(CDVInvokedUrlCommand*)command
{
if (command.className == nil || command.methodName == nil) {
+ NSLog(@"ERROR: Classname and/or methodName not found for command.");
return NO;
}