Skip to content

Commit

Permalink
Crash log symbolication: Added crash timestamp to crash.log. It could…
Browse files Browse the repository at this point in the history
… be used as crash id
  • Loading branch information
manuroe committed Mar 30, 2016
1 parent 117bcf4 commit ce3b4b9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion MatrixSDK/Utils/MXLogger.m
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 144,8 @@ static void handleUncaughtException(NSException *exception)
NSString *model = [[UIDevice currentDevice] model];
NSString *version = [[UIDevice currentDevice] systemVersion];
NSArray *backtrace = [exception callStackSymbols];
NSString *description = [NSString stringWithFormat:@"[%@]\n%@\nApplication: %@ (%@)\nApplication version: %@\nMatrix SDK version: %@\nBuild: %@\n%@ %@\n%@\n",
NSString *description = [NSString stringWithFormat:@"%tu - %@\n%@\nApplication: %@ (%@)\nApplication version: %@\nMatrix SDK version: %@\nBuild: %@\n%@ %@\n%@\n",
[[NSDate date] timeIntervalSince1970],
[NSDate date],
exception.description,
app, appId,
Expand Down
6 changes: 6 additions & 0 deletions scripts/symbolicate/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 1,6 @@
# Ignore everything
*

# But not these files...
!.gitignore
!*.py

0 comments on commit ce3b4b9

Please sign in to comment.