From f1e0b2df54f56fa1c83270ff61502b572442f146 Mon Sep 17 00:00:00 2001
From: Peter De Wachter <pdewacht@gmail.com>
Date: Thu, 2 Nov 2017 00:06:58 +0100
Subject: [PATCH] Reduce log level of cupsRasterOpen failure

If cupsRasterOpen fails, the most likely cause is that some earlier
filter didn't produce any output. If we output an error-level message
in this situation, we'll likely displace some earlier, more useful
message by the other filter.
---
 src/main.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main.cc b/src/main.cc
index 7705168..bff2f1b 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -158,7 +158,7 @@ int main(int argc, char *argv[]) {
 
   ras = cupsRasterOpen(fd, CUPS_RASTER_READ);
   if (!ras) {
-    fprintf(stderr, "ERROR: " PACKAGE ": Can't read raster data\n");
+    fprintf(stderr, "DEBUG: " PACKAGE ": Cannot read raster data. Most likely an earlier filter in the pipeline failed.\n");
     return 1;
   }