Title: [242898] trunk/Source/WebInspectorUI
Revision
242898
Author
[email protected]
Date
2019-03-13 12:28:26 -0700 (Wed, 13 Mar 2019)

Log Message

Web Inspector: Protocol Logging: log messages with backtrace if inspector^2 is open
https://bugs.webkit.org/show_bug.cgi?id=195687

Reviewed by Joseph Pecoraro.

* UserInterface/Protocol/LoggingProtocolTracer.js:
(WI.LoggingProtocolTracer.prototype._processEntry):

Modified Paths

Diff

Modified: trunk/Source/WebInspectorUI/ChangeLog (242897 => 242898)


--- trunk/Source/WebInspectorUI/ChangeLog	2019-03-13 19:19:26 UTC (rev 242897)
+++ trunk/Source/WebInspectorUI/ChangeLog	2019-03-13 19:28:26 UTC (rev 242898)
@@ -1,5 +1,15 @@
 2019-03-13  Devin Rousso  <[email protected]>
 
+        Web Inspector: Protocol Logging: log messages with backtrace if inspector^2 is open
+        https://bugs.webkit.org/show_bug.cgi?id=195687
+
+        Reviewed by Joseph Pecoraro.
+
+        * UserInterface/Protocol/LoggingProtocolTracer.js:
+        (WI.LoggingProtocolTracer.prototype._processEntry):
+
+2019-03-13  Devin Rousso  <[email protected]>
+
         Web Inspector: REGRESSION(r242737): unnecessary semicolon added when populating WI.TreeOutline stylesheet
         https://bugs.webkit.org/show_bug.cgi?id=195689
 

Modified: trunk/Source/WebInspectorUI/UserInterface/Protocol/LoggingProtocolTracer.js (242897 => 242898)


--- trunk/Source/WebInspectorUI/UserInterface/Protocol/LoggingProtocolTracer.js	2019-03-13 19:19:26 UTC (rev 242897)
+++ trunk/Source/WebInspectorUI/UserInterface/Protocol/LoggingProtocolTracer.js	2019-03-13 19:28:26 UTC (rev 242898)
@@ -121,9 +121,12 @@
                 return;
 
             let prefix = `${entry.type} (${targetId})`;
-            if (!window.InspectorTest && InspectorFrontendHost.isBeingInspected())
-                this._logToConsole(prefix, entry.message);
-            else
+            if (!window.InspectorTest && InspectorFrontendHost.isBeingInspected()) {
+                if (entry.type === "request" || entry.type === "exception")
+                    console.trace(prefix, entry.message);
+                else
+                    this._logToConsole(prefix, entry.message);
+            } else
                 this._logToConsole(`${prefix}: ${JSON.stringify(entry.message)}`);
 
             if (entry.exception) {
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to