openvid-test-e2e: print wrong thumbnail base64

pull/669/head
pabloFuente 2021-11-09 11:23:08 +01:00
parent 47058c6292
commit 22faa51ad7
1 changed files with 8 additions and 0 deletions

View File

@ -237,6 +237,14 @@ public class RecordingUtils {
Map<String, Long> colorMap = this.averageColor(image); Map<String, Long> colorMap = this.averageColor(image);
log.info("Thumbnail map color: {}", colorMap.toString()); log.info("Thumbnail map color: {}", colorMap.toString());
isFine = colorCheckFunction.apply(colorMap); isFine = colorCheckFunction.apply(colorMap);
if (!isFine) {
try {
log.error("Thumbnail is not fine. Printed below");
System.out.println(bufferedImageToBase64PngString(ImageIO.read(file)));
} catch (IOException e) {
e.printStackTrace();
}
}
return isFine; return isFine;
} }