diff options
author | rowanbeentje <rowan@beent.je> | 2010-03-06 02:10:35 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2010-03-06 02:10:35 +0000 |
commit | 37b41c535f442aa85750679dccc7885655cb3429 (patch) | |
tree | f2961fb4141f329ae0e17e111260993caf2cf0cb /Source/SPAppController.m | |
parent | 0075403979eff53d16f928733247837d72d37a0b (diff) | |
download | sequelpro-37b41c535f442aa85750679dccc7885655cb3429.tar.gz sequelpro-37b41c535f442aa85750679dccc7885655cb3429.tar.bz2 sequelpro-37b41c535f442aa85750679dccc7885655cb3429.zip |
Improve Feedback reporter privacy and functionality:
- Update to a development version of the feedback reporter, which improves logging and allows functionality like exception reporting from non-main threads (together with many other improvements).
- Use the new preference privacy delegate methods to remove query history and favorite settings, together with other hostname/user path type settings, to anonymise the preferences submitted
- Limit the console log submitted to 10k
- Move the framework into the Frameworks folder
Diffstat (limited to 'Source/SPAppController.m')
-rw-r--r-- | Source/SPAppController.m | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Source/SPAppController.m b/Source/SPAppController.m index 6ba6175d..9feea4e9 100644 --- a/Source/SPAppController.m +++ b/Source/SPAppController.m @@ -82,6 +82,10 @@ */ - (void)applicationDidFinishLaunching:(NSNotification *)notification { + // Set ourselves as the crash reporter delegate + [[FRFeedbackReporter sharedReporter] setDelegate:self]; + + // Report any crashes [[FRFeedbackReporter sharedReporter] reportIfCrash]; } @@ -411,6 +415,28 @@ } #pragma mark - +#pragma mark Feedback reporter delegate methods + +/** + * Anonymises the preferences dictionary before feedback submission + */ +- (NSMutableDictionary*) anonymizePreferencesForFeedbackReport:(NSMutableDictionary *)preferences +{ + [preferences removeObjectsForKeys:[NSArray arrayWithObjects:@"ContentFilters", + @"favorites", + @"lastSqlFileName", + @"NSNavLastRootDirectory", + @"openPath", + @"queryFavorites", + @"queryHistory", + @"tableColumnWidths", + @"savePath", + nil]]; + + return preferences; +} + +#pragma mark - #pragma mark Other methods /** |