Changeset 259707 in webkit
- Timestamp:
- Apr 8, 2020 1:40:19 AM (4 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r259641 r259707 1 2020-04-08 Philippe Normand <pnormand@igalia.com> 2 3 [GTK][WPE] Release logs are unconditionally filling the journal 4 https://bugs.webkit.org/show_bug.cgi?id=209421 5 6 Reviewed by Carlos Alberto Lopez Perez. 7 8 Re-enable Systemd logging and make it opt-in via the WEBKIT_DEBUG environment variable. 9 10 * Source/cmake/OptionsGTK.cmake: 11 * Source/cmake/OptionsWPE.cmake: 12 1 13 2020-04-07 Adrian Perez de Castro <aperez@igalia.com> 2 14 -
trunk/Source/WTF/ChangeLog
r259674 r259707 1 2020-04-08 Philippe Normand <pnormand@igalia.com> 2 3 [GTK][WPE] Release logs are unconditionally filling the journal 4 https://bugs.webkit.org/show_bug.cgi?id=209421 5 6 Reviewed by Carlos Alberto Lopez Perez. 7 8 * wtf/Assertions.h: Don't send logs to systemd for disabled log channels. 9 * wtf/Logger.h: 10 (WTF::Logger::willLog const): Ditto. 11 1 12 2020-04-07 Chris Dumez <cdumez@apple.com> 2 13 -
trunk/Source/WTF/wtf/Assertions.h
r258547 r259707 542 542 #if USE(JOURNALD) && !RELEASE_LOG_DISABLED 543 543 #define PUBLIC_LOG_STRING "s" 544 #define SD_JOURNAL_SEND(channel, priority, file, line, function, ...) sd_journal_send_with_location("CODE_FILE=" file, "CODE_LINE=" line, function, "WEBKIT_SUBSYSTEM=%s", LOG_CHANNEL(channel).subsystem, "WEBKIT_CHANNEL=%s", LOG_CHANNEL(channel).name, "PRIORITY=%i", priority, "MESSAGE=" __VA_ARGS__, nullptr) 544 #define SD_JOURNAL_SEND(channel, priority, file, line, function, ...) do { \ 545 if (LOG_CHANNEL(channel).state != WTFLogChannelState::Off) \ 546 sd_journal_send_with_location("CODE_FILE=" file, "CODE_LINE=" line, function, "WEBKIT_SUBSYSTEM=%s", LOG_CHANNEL(channel).subsystem, "WEBKIT_CHANNEL=%s", LOG_CHANNEL(channel).name, "PRIORITY=%i", priority, "MESSAGE=" __VA_ARGS__, nullptr); \ 547 } while (0) 545 548 546 549 #define _XSTRINGIFY(line) #line -
trunk/Source/WTF/wtf/Logger.h
r258691 r259707 239 239 return false; 240 240 241 #if USE(SYSTEMD) 242 if (channel.state == WTFLogChannelState::Off) 243 return false; 244 #endif 245 241 246 if (level <= WTFLogLevel::Error) 242 247 return true; -
trunk/Source/WebCore/ChangeLog
r259706 r259707 1 2020-04-08 Philippe Normand <pnormand@igalia.com> 2 3 [GTK][WPE] Release logs are unconditionally filling the journal 4 https://bugs.webkit.org/show_bug.cgi?id=209421 5 6 Reviewed by Carlos Alberto Lopez Perez. 7 8 * platform/unix/LoggingUnix.cpp: 9 (WebCore::logLevelString): Disable all logging when the 10 WEBKIT_DEBUG environment variable is empty. 11 1 12 2020-04-07 Antoine Quint <graouts@apple.com> 2 13 -
trunk/Source/WebCore/platform/unix/LoggingUnix.cpp
r258754 r259707 33 33 { 34 34 char* logEnv = getenv("WEBKIT_DEBUG"); 35 36 // Disable all log channels if WEBKIT_DEBUG is unset. 35 37 if (!logEnv) 36 return emptyString();38 return makeString("-all"_s); 37 39 38 40 // We set up the logs anyway because some of our logging, such as Soup's is available in release builds. -
trunk/Source/cmake/OptionsGTK.cmake
r259641 r259707 92 92 WEBKIT_OPTION_DEFINE(USE_WOFF2 "Whether to enable support for WOFF2 Web Fonts." PUBLIC ON) 93 93 WEBKIT_OPTION_DEFINE(USE_WPE_RENDERER "Whether to enable WPE rendering" PUBLIC ON) 94 WEBKIT_OPTION_DEFINE(USE_SYSTEMD "Whether to enable journald logging" PUBLIC O FF)94 WEBKIT_OPTION_DEFINE(USE_SYSTEMD "Whether to enable journald logging" PUBLIC ON) 95 95 96 96 # Private options specific to the GTK port. Changing these options is -
trunk/Source/cmake/OptionsWPE.cmake
r259606 r259707 80 80 WEBKIT_OPTION_DEFINE(USE_WOFF2 "Whether to enable support for WOFF2 Web Fonts." PUBLIC ON) 81 81 WEBKIT_OPTION_DEFINE(ENABLE_WPE_QT_API "Whether to enable support for the Qt5/QML plugin" PUBLIC OFF) 82 WEBKIT_OPTION_DEFINE(USE_SYSTEMD "Whether to enable journald logging" PUBLIC O FF)82 WEBKIT_OPTION_DEFINE(USE_SYSTEMD "Whether to enable journald logging" PUBLIC ON) 83 83 84 84 # Private options specific to the WPE port.
Note: See TracChangeset
for help on using the changeset viewer.