Bug 56783 - Actually hook up WebKit2 logging on Mac.
Summary: Actually hook up WebKit2 logging on Mac.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac All
: P2 Normal
Assignee: Brady Eidson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-21 17:02 PDT by Brady Eidson
Modified: 2011-06-18 11:58 PDT (History)
2 users (show)

See Also:


Attachments
Patch v1 (9.07 KB, patch)
2011-03-21 17:04 PDT, Brady Eidson
bweinstein: review+
beidson: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brady Eidson 2011-03-21 17:02:42 PDT
Actually hook up WebKit2 logging on Mac.
Comment 1 Brady Eidson 2011-03-21 17:04:24 PDT
Created attachment 86389 [details]
Patch v1
Comment 2 WebKit Review Bot 2011-03-21 17:07:07 PDT
Attachment 86389 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebKit2/ChangeLog', u'Source/WebKit..." exit_code: 1

Source/WebKit2/Platform/Logging.h:26:  #ifndef header guard has wrong style, please use: WTF_Logging_h  [build/header_guard] [5]
Source/WebKit2/Platform/Logging.h:44:  The parameter name "channel" adds no information, so it should be removed.  [readability/parameter_name] [5]
Total errors found: 2 in 6 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Brian Weinstein 2011-03-21 17:42:12 PDT
Comment on attachment 86389 [details]
Patch v1

View in context: https://bugs.webkit.org/attachment.cgi?id=86389&action=review

Please fix the style issues also.

> Source/WebKit2/Platform/mac/Logging.mac.mm:35
> +    if (logLevelString) {

Can this be an early return instead?

> Source/WebKit2/UIProcess/WebContext.cpp:131
> +#endif

I think a blank line after the #endif would be slightly more pleasing on the eye.
Comment 4 Brady Eidson 2011-03-21 17:45:42 PDT
(In reply to comment #3)
> (From update of attachment 86389 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=86389&action=review
> 
> Please fix the style issues also.

Fixed the argument name.  Can't fix the header guard - each logging header needs to be unique.  Breakage ensues otherwise.

> 
> > Source/WebKit2/Platform/mac/Logging.mac.mm:35
> > +    if (logLevelString) {
> 
> Can this be an early return instead?

Probably

> 
> > Source/WebKit2/UIProcess/WebContext.cpp:131
> > +#endif
> 
> I think a blank line after the #endif would be slightly more pleasing on the eye.

K
Comment 5 Brady Eidson 2011-03-21 17:47:36 PDT
Landed in r81628
Comment 6 Brady Eidson 2011-03-21 17:58:56 PDT
r81631 fixed the mac release build.