Commit 84fe683c by huangdarwin Committed by Andrew Lewis

HDR: Add colorinfo to exception logs.

Format.toString unfortunately doesn't log colorInfo, and as Format holds a very
large set of values, it's unclear that it should. ColorInfo is useful for codec
exceptions though, so log this in ExportException.createForCodec.

PiperOrigin-RevId: 510475520
parent 5e93616a
...@@ -229,6 +229,9 @@ public final class ExportException extends Exception { ...@@ -229,6 +229,9 @@ public final class ExportException extends Exception {
boolean isDecoder, boolean isDecoder,
Format format) { Format format) {
String details = "format=" + format; String details = "format=" + format;
if (isVideo) {
details += ", colorInfo=" + format.colorInfo;
}
return createForCodec(cause, errorCode, isVideo, isDecoder, details); return createForCodec(cause, errorCode, isVideo, isDecoder, details);
} }
......
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 sign in to comment