Commit 16c1e12e authored by David Bokan's avatar David Bokan Committed by Commit Bot

[BlinkGenPropertyTrees] Print logging per-line

This patch prints the property tree logging by printing each line
separately.

This prevents truncation of the logging output on Android, where:

  LOG << ...long multiline string...

Will be truncated after some finite number of characters. For long
outputs such as the property trees we hit this quite easily.

Bug: 854200
Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;master.tryserver.blink:linux_trusty_blink_rel
Change-Id: I7e70a5e66d8248b2faa478738db94c980c28e3f7
Reviewed-on: https://chromium-review.googlesource.com/1173156
Commit-Queue: David Bokan <bokan@chromium.org>
Reviewed-by: default avatarPhilip Rogers <pdr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#582744}
parent 0374f46f
......@@ -791,7 +791,12 @@ bool LayerTreeHost::DoUpdateLayers(Layer* root_layer) {
base::JSONWriter::WriteWithOptions(
*property_trees->AsTracedValue()->ToBaseValue(),
base::JSONWriter::OPTIONS_PRETTY_PRINT, &out);
VLOG(3) << out;
std::stringstream ss(out);
while (!ss.eof()) {
std::string line;
std::getline(ss, line);
VLOG(3) << line;
}
}
}
......
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