Changeset 141447 in webkit
- Timestamp:
- Jan 31, 2013, 11:06:51 AM (12 years ago)
- Location:
- trunk/Source
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/mac/ChangeLog
r141202 r141447 1 2013-01-31 Brady Eidson <beidson@apple.com> 2 3 Lack of a log level string should not obliterate compiled in logging channel state. 4 https://bugs.webkit.org/show_bug.cgi?id=108502 5 6 Reviewed by Alexey Proskuryakov and Sam Weinig. 7 8 * Misc/WebKitLogging.m: If there's no log level string, leave the channel state alone. 9 1 10 2013-01-29 Sheriff Bot <webkit.review.bot@gmail.com> 2 11 -
trunk/Source/WebKit/mac/Misc/WebKitLogging.m
r121707 r141447 58 58 static void initializeLogChannel(WTFLogChannel *channel) 59 59 { 60 channel->state = WTFLogChannelOff;61 60 NSString *logLevelString = [[NSUserDefaults standardUserDefaults] objectForKey:[NSString stringWithUTF8String:channel->defaultName]]; 61 62 // If there's no log level string from the user defaults, don't obliterate the compiled in values. 62 63 if (logLevelString) { 64 channel->state = WTFLogChannelOff; 63 65 unsigned logLevel; 64 66 if (![[NSScanner scannerWithString:logLevelString] scanHexInt:&logLevel]) -
trunk/Source/WebKit2/ChangeLog
r141445 r141447 1 2013-01-31 Brady Eidson <beidson@apple.com> 2 3 Lack of a log level string should not obliterate compiled in logging channel state. 4 https://bugs.webkit.org/show_bug.cgi?id=108502 5 6 Reviewed by Alexey Proskuryakov and Sam Weinig. 7 8 * Platform/mac/Logging.mac.mm: 9 (WebKit::initializeLogChannel): If there's no log level string, leave the channel state alone. 10 1 11 2013-01-31 Alexey Proskuryakov <ap@apple.com> 2 12 -
trunk/Source/WebKit2/Platform/mac/Logging.mac.mm
r95901 r141447 33 33 void initializeLogChannel(WTFLogChannel* channel) 34 34 { 35 channel->state = WTFLogChannelOff;35 // If there is no log level string from the user defaults then don't change the logging channel at all. 36 36 NSString *logLevelString = [[NSUserDefaults standardUserDefaults] objectForKey:[NSString stringWithUTF8String:channel->defaultName]]; 37 37 if (!logLevelString) 38 38 return; 39 39 40 channel->state = WTFLogChannelOff; 41 40 42 unsigned logLevel; 41 43 if (![[NSScanner scannerWithString:logLevelString] scanHexInt:&logLevel])
Note:
See TracChangeset
for help on using the changeset viewer.