WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
175731
Add WTFLogChannel level to allow runtime log filtering
https://bugs.webkit.org/show_bug.cgi?id=175731
Summary
Add WTFLogChannel level to allow runtime log filtering
Eric Carlson
Reported
2017-08-18 11:56:22 PDT
Add a "level" field to WTFLogChannel and new log functions and macros so logging can be filtered at runtime.
Attachments
Proposed patch.
(24.66 KB, patch)
2017-08-18 12:43 PDT
,
Eric Carlson
no flags
Details
Formatted Diff
Diff
Patch for landing.
(25.02 KB, patch)
2017-08-20 12:38 PDT
,
Eric Carlson
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews124 for ios-simulator-wk2
(1.07 MB, application/zip)
2017-08-20 16:26 PDT
,
Build Bot
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2017-08-18 11:57:08 PDT
<
rdar://problem/33967234
>
Eric Carlson
Comment 2
2017-08-18 12:43:27 PDT
Created
attachment 318529
[details]
Proposed patch.
Build Bot
Comment 3
2017-08-18 12:45:13 PDT
Attachment 318529
[details]
did not pass style-queue: ERROR: Source/WTF/wtf/Assertions.h:176: LOG_CHANNEL is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4] ERROR: Source/WTF/wtf/Assertions.h:179: LOG_CHANNEL is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4] ERROR: Source/WTF/wtf/Assertions.h:452: Extra space after ( in function call [whitespace/parens] [4] Total errors found: 3 in 8 files If any of these errors are false positives, please file a bug against check-webkit-style.
WebKit Commit Bot
Comment 4
2017-08-18 15:46:21 PDT
Comment on
attachment 318529
[details]
Proposed patch. Clearing flags on attachment: 318529 Committed
r220938
: <
http://trac.webkit.org/changeset/220938
>
WebKit Commit Bot
Comment 5
2017-08-18 15:46:22 PDT
All reviewed patches have been landed. Closing bug.
Ryan Haddad
Comment 6
2017-08-18 17:18:41 PDT
(In reply to WebKit Commit Bot from
comment #4
)
> Comment on
attachment 318529
[details]
> Proposed patch. > > Clearing flags on attachment: 318529 > > Committed
r220938
: <
http://trac.webkit.org/changeset/220938
>
API tests added with this change are failing on iOS Simulator: Tests that failed: LoggingTest.LOG LoggingTest.LOG_WITH_LEVEL LoggingTest.RELEASE_LOG LoggingTest.RELEASE_LOG_IF LoggingTest.RELEASE_LOG_WITH_LEVEL LoggingTest.RELEASE_LOG_WITH_LEVEL_IF
https://build.webkit.org/builders/Apple%20iOS%2010%20Simulator%20Release%20WK2%20(Tests)/builds/3719
Ryan Haddad
Comment 7
2017-08-18 17:23:24 PDT
Actually, they fail on macOS as well:
https://build.webkit.org/builders/Apple%20El%20Capitan%20Release%20WK1%20(Tests)/builds/4068
Ryan Haddad
Comment 8
2017-08-18 17:31:04 PDT
Reverted
r220938
for reason: The API tests added with this change are failing. Committed
r220947
: <
http://trac.webkit.org/changeset/220947
>
Eric Carlson
Comment 9
2017-08-18 21:36:42 PDT
(In reply to Ryan Haddad from
comment #8
)
> Reverted
r220938
for reason: > > The API tests added with this change are failing. > > Committed
r220947
: <
http://trac.webkit.org/changeset/220947
>
How is it that the so-called "early warning" bots *still* don't run API tests?
Eric Carlson
Comment 10
2017-08-18 21:41:35 PDT
It looks like using pipe+fcntl+dup2 to capture stderr output doesn't work on all platforms, so maybe I should disable the tests and commit.
Eric Carlson
Comment 11
2017-08-18 21:42:34 PDT
WKWebViewDoesNotLogDuringInitialization.mm uses the same technique to check for logging output, but it only fails if somethings is written to the FD so the test doesn't fail if the technique fails.
Eric Carlson
Comment 12
2017-08-20 12:38:07 PDT
Created
attachment 318604
[details]
Patch for landing.
Build Bot
Comment 13
2017-08-20 14:30:49 PDT
Attachment 318604
[details]
did not pass style-queue: ERROR: Source/WTF/wtf/Assertions.h:176: LOG_CHANNEL is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4] ERROR: Source/WTF/wtf/Assertions.h:179: LOG_CHANNEL is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4] ERROR: Source/WTF/wtf/Assertions.h:452: Extra space after ( in function call [whitespace/parens] [4] Total errors found: 3 in 8 files If any of these errors are false positives, please file a bug against check-webkit-style.
Build Bot
Comment 14
2017-08-20 16:26:37 PDT
Comment on
attachment 318604
[details]
Patch for landing.
Attachment 318604
[details]
did not pass ios-sim-ews (ios-simulator-wk2): Output:
http://webkit-queues.webkit.org/results/4350245
New failing tests: quicklook/multi-sheet-numbers-09.html
Build Bot
Comment 15
2017-08-20 16:26:38 PDT
Created
attachment 318606
[details]
Archive of layout-test-results from ews124 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews124 Port: ios-simulator-wk2 Platform: Mac OS X 10.12.5
WebKit Commit Bot
Comment 16
2017-08-21 06:03:08 PDT
Comment on
attachment 318604
[details]
Patch for landing. Clearing flags on attachment: 318604 Committed
r220964
: <
http://trac.webkit.org/changeset/220964
>
WebKit Commit Bot
Comment 17
2017-08-21 06:03:10 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug