Skip to content

Commit

Permalink
Make sure logging happens in release builds by always accepting messa…
Browse files Browse the repository at this point in the history
…ges regardless of log level (debug messages are still compiled out of release builds). Also log a message when a non-built-in display reconfiguration callback is triggered for testing purposes.
  • Loading branch information
codykrieger committed Jun 18, 2012
1 parent deb488e commit 6c616e5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[submodule "lib/reactivecocoa"]
path = lib/reactivecocoa
url = [email protected]:codykrieger/ReactiveCocoa.git
ignore = untracked
2 changes: 2 additions & 0 deletions Classes/GSGPU.m
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ static void _displayReconfigurationCallback(CGDirectDisplayID display, CGDisplay
// we aren't just randomly changing modes on users unexpectedly. Need to do
// some testing of this before the v2.2/v2.3 release.
if (!CGDisplayIsBuiltin(display) && ![GSGPU isLegacyMachine]) {
GTMLoggerInfo(@"A non-built-in display reconfiguration callback has been triggered.");

// FIXME: Implement. This kind of needs to happen.
}

Expand Down
3 changes: 3 additions & 0 deletions Classes/gfxCardStatusAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ @implementation gfxCardStatusAppDelegate

- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
{
GTMLogger *logger = [GTMLogger sharedLogger];
[logger setFilter:[[GTMLogNoFilter alloc] init]];

// Initialize the preferences object and set default preferences if this is
// a first-time run.
_prefs = [GSPreferences sharedInstance];
Expand Down

0 comments on commit 6c616e5

Please sign in to comment.