Skip to content

Commit

Permalink
WebKitBrowser: fix syslog in static methods (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
bramoosterhuis authored Sep 24, 2022
1 parent dfd6f81 commit d9d0ff3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions WebKitBrowser/WebKitImplementation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2077,13 +2077,13 @@ static GSourceFuncs _handlerIntervention =
{
switch (reason) {
case WEBKIT_WEB_PROCESS_CRASHED:
SYSLOG(Logging::Fatal, (_T("CRASH: WebProcess crashed: exiting ...")));
SYSLOG_GLOBAL(Logging::Fatal, (_T("CRASH: WebProcess crashed: exiting ...")));
break;
case WEBKIT_WEB_PROCESS_EXCEEDED_MEMORY_LIMIT:
SYSLOG(Logging::Fatal, (_T("CRASH: WebProcess terminated due to memory limit: exiting ...")));
SYSLOG_GLOBAL(Logging::Fatal, (_T("CRASH: WebProcess terminated due to memory limit: exiting ...")));
break;
case WEBKIT_WEB_PROCESS_TERMINATED_BY_API:
SYSLOG(Logging::Fatal, (_T("CRASH: WebProcess terminated by API")));
SYSLOG_GLOBAL(Logging::Fatal, (_T("CRASH: WebProcess terminated by API")));
break;
}
exit(1);
Expand Down Expand Up @@ -2637,7 +2637,7 @@ static GSourceFuncs _handlerIntervention =
if (self->_unresponsiveReplyNum > 0) {

std::string activeURL(webkit_web_view_get_uri(self->_view));
SYSLOG(Logging::Notification, (_T("WebProcess recovered after %d unresponsive replies, url=%s\n"),
SYSLOG_GLOBAL(Logging::Notification, (_T("WebProcess recovered after %d unresponsive replies, url=%s\n"),
self->_unresponsiveReplyNum, activeURL.c_str()));
self->_unresponsiveReplyNum = 0;
}
Expand All @@ -2651,7 +2651,7 @@ static GSourceFuncs _handlerIntervention =

std::string activeURL = GetPageActiveURL(page);
pid_t webprocessPID = WKPageGetProcessIdentifier(page);
SYSLOG(Logging::Notification, (_T("WebProcess recovered after %d unresponsive replies, pid=%u, url=%s\n"),
SYSLOG_GLOBAL(Logging::Notification, (_T("WebProcess recovered after %d unresponsive replies, pid=%u, url=%s\n"),
self._unresponsiveReplyNum, webprocessPID, activeURL.c_str()));
self._unresponsiveReplyNum = 0;
}
Expand Down

0 comments on commit d9d0ff3

Please sign in to comment.