#!/bin/sh
## AUTHOR
#  Copyright © 2025 Martin-Éric Racine <martin-eric.racine@iki.fi>
## LICENSE
#  SPDX-License-Identifier: GPL-2.0-or-later
%export LC_ALL=C
# reportbug expects output on fd 3
exec 1>&3 2>&3
echo "--- /var/log/cups/cups-pdf_log ---"
if [ ! -f /var/log/cups/cups-pdf_log ]; then
	echo "MISSING"
	exit 0
else
	ls -l --time-style=long-iso /var/log/cups/cups-pdf_log
	cat /var/log/cups/cups-pdf_log
fi
echo
echo "--- /var/log/cups/cups-pdf-PDF_log ---"
if [ ! -f /var/log/cups/cups-pdf-PDF_log ]; then
	echo "MISSING"
	exit 0
else
	ls -l --time-style=long-iso /var/log/cups/cups-pdf-PDF_log
	cat /var/log/cups/cups-pdf-PDF_log
fi
echo
##EOF##
