Browse files

Added more detail to debug provider

  • Loading branch information...
1 parent ab020e5 commit 26c973c0a525f64eabd3d99b76c8c05127bd4c2d @thuss thuss committed Jun 5, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 AnalyticsKitDebug.m
View
6 AnalyticsKitDebug.m
@@ -51,11 +51,13 @@ -(void)showDebugAlert:(NSString *)message{
}
-(void)logError:(NSString *)name message:(NSString *)message exception:(NSException *)exception{
- [self showDebugAlert:message];
+ NSString *detail = [NSString stringWithFormat:@"%@\n\n%@\n\n%@", name, message, exception];
+ [self showDebugAlert:detail];
}
-(void)logError:(NSString *)name message:(NSString *)message error:(NSError *)error{
- [self showDebugAlert:message];
+ NSString *detail = [NSString stringWithFormat:@"%@\n\n%@\n\n%@", name, message, error];
+ [self showDebugAlert:detail];
}
@end

0 comments on commit 26c973c

Please sign in to comment.