You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by mo...@apache.org on 2019/04/17 12:06:32 UTC
[incubator-weex] branch master updated: [iOS] modify the format of
report server mssage
This is an automated email from the ASF dual-hosted git repository.
moshen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-weex.git
The following commit(s) were added to refs/heads/master by this push:
new 8f58456 [iOS] modify the format of report server mssage
new 6cfbdbe Merge pull request #2329 from jianhan-he/master
8f58456 is described below
commit 8f584563728cff111ce9424ed5c04cd7207a64b6
Author: linghe.lh <li...@alibaba-inc.com>
AuthorDate: Wed Apr 17 14:22:37 2019 +0800
[iOS] modify the format of report server mssage
---
ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m b/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m
index f6a8f5a..ff568b6 100644
--- a/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m
+++ b/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m
@@ -1113,9 +1113,14 @@ _Pragma("clang diagnostic pop") \
if (instance) {
bundleUrl = instance.pageName?:([instance.scriptURL absoluteString]?:@"WX_KEY_EXCEPTION_WXBRIDGE");
- message = [NSString stringWithFormat:@"[WX_KEY_EXCEPTION_WXBRIDGE] [%@:%@:%@] %@\n%@\n%@\n%@\n%@\n%@", exception[@"sourceURL"], exception[@"line"], exception[@"column"], [exception toString], [exception[@"stack"] toObject], instance.scriptURL.absoluteString, instance.callCreateInstanceContext?:@"", instance.createInstanceContextResult?:@"", instance.executeRaxApiResult?:@""];
+ message = [NSString stringWithFormat:@"[WX_KEY_EXCEPTION_WXBRIDGE] exception: %@\n stack:%@",[exception toString],[exception[@"stack"] toObject]];
userInfo = @{@"jsMainBundleStringContentLength":instance.userInfo[@"jsMainBundleStringContentLength"]?:@"",
- @"jsMainBundleStringContentMd5":instance.userInfo[@"jsMainBundleStringContentMd5"]?:@""};
+ @"jsMainBundleStringContentMd5":instance.userInfo[@"jsMainBundleStringContentMd5"]?:@"",
+ @"sourceURL":[NSString stringWithFormat:@"%@:%@:%@",exception[@"sourceURL"],exception[@"line"],exception[@"column"]],
+ @"callCreateInstanceContext":instance.callCreateInstanceContext?:@"",
+ @"createInstanceContextResult": instance.createInstanceContextResult?:@"",
+ @"executeRaxApiResult":instance.executeRaxApiResult?:@""
+ };
}
if (commitException) {