diff options
author | altse@chromium.org <altse@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2013-12-12 19:58:00 +0000 |
---|---|---|
committer | altse@chromium.org <altse@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2013-12-12 19:58:00 +0000 |
commit | b5e5d8bd3074f4decc5e942291db5c004685c48d (patch) | |
tree | 913689a0d32ae6da99a18f07ef45c36c12f18c1e /src/client/mac/crash_generation/ConfigFile.mm | |
parent | Add -[BreakpadController resetConfiguration] for iOS. (diff) | |
download | breakpad-b5e5d8bd3074f4decc5e942291db5c004685c48d.tar.xz |
Remove usage of gDebugLog and DEBUGLOG from Mac and iOS client code.
The inconsistent and duplicated references to gDebugLog caused
problems building on iOS and the current logging implementation
had little utility because it was never activated in debug builds.
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1257 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/client/mac/crash_generation/ConfigFile.mm')
-rw-r--r-- | src/client/mac/crash_generation/ConfigFile.mm | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/client/mac/crash_generation/ConfigFile.mm b/src/client/mac/crash_generation/ConfigFile.mm index 7ff25378..dbb0f24d 100644 --- a/src/client/mac/crash_generation/ConfigFile.mm +++ b/src/client/mac/crash_generation/ConfigFile.mm @@ -38,15 +38,6 @@ #import "client/apple/Framework/BreakpadDefines.h" #import "GTMDefines.h" -#define VERBOSE 0 - -#if VERBOSE - bool gDebugLog = true; -#else - bool gDebugLog = false; -#endif - -#define DEBUGLOG if (gDebugLog) fprintf namespace google_breakpad { @@ -77,13 +68,10 @@ BOOL ConfigFile::AppendConfigData(const char *key, assert(config_file_ != -1); if (!key) { - DEBUGLOG(stderr, "Breakpad: Missing Key\n"); return NO; } if (!data) { - DEBUGLOG(stderr, "Breakpad: Missing data for key: %s\n", key ? key : - "<Unknown Key>"); return NO; } @@ -147,14 +135,8 @@ void ConfigFile::WriteFile(const char* directory, config_file_ = mkstemp(config_file_path_); if (config_file_ == -1) { - DEBUGLOG(stderr, - "mkstemp(config_file_path_) == -1 (%s)\n", - strerror(errno)); return; } - else { - DEBUGLOG(stderr, "Writing config file to (%s)\n", config_file_path_); - } has_created_file_ = true; @@ -170,10 +152,6 @@ void ConfigFile::WriteFile(const char* directory, SimpleStringDictionary::Iterator iter(dictionary); while ((entry = iter.Next())) { - DEBUGLOG(stderr, - "config: (%s) -> (%s)\n", - entry->key, - entry->value); result = AppendConfigString(entry->key, entry->value); if (!result) |