Commit d55e37e7 authored by David Tseng's avatar David Tseng Committed by Commit Bot

Fix the event stream logging checkbox

1. the <input> for this preference was actually missing.
2. when enabled, we should also dump the output log to the console

Change-Id: I7852dc3dcc6ef8b8164d4e74e1483e1664bd049d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1639326Reviewed-by: default avatarDavid Tseng <dtseng@chromium.org>
Reviewed-by: default avatarSara Kato <sarakato@chromium.org>
Commit-Queue: Sara Kato <sarakato@chromium.org>
Auto-Submit: David Tseng <dtseng@chromium.org>
Cr-Commit-Position: refs/heads/master@{#665837}
parent 2fe4e528
...@@ -210,6 +210,8 @@ ...@@ -210,6 +210,8 @@
</div> </div>
<div class="option" id="developerEventStream"> <div class="option" id="developerEventStream">
<label> <label>
<input id="enableEventStreamLogging" type="checkbox"
class="checkbox pref logging" name="enableEventStreamLogging">
<span class="i18n" msgid="options_event_stream_logging"> <span class="i18n" msgid="options_event_stream_logging">
Enable event stream logging Enable event stream logging
</span> </span>
......
...@@ -59,7 +59,7 @@ EventStreamLogger.prototype = { ...@@ -59,7 +59,7 @@ EventStreamLogger.prototype = {
logStr += ', TargetName = ' + evt.target.name; logStr += ', TargetName = ' + evt.target.name;
logStr += ', RootName = ' + evt.target.root.name; logStr += ', RootName = ' + evt.target.root.name;
logStr += ', DocumentURL = ' + evt.target.docUrl; logStr += ', DocumentURL = ' + evt.target.docUrl;
console.log(logStr);
LogStore.getInstance().writeTextLog(logStr, TextLog.LogType.EVENT); LogStore.getInstance().writeTextLog(logStr, TextLog.LogType.EVENT);
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment