mirror of
https://github.com/grocy/grocy.git
synced 2025-10-14 17:24:07 +00:00
Added the possibility to log executed SQL statements (DEV mode only)
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
namespace Grocy\Services;
|
||||
|
||||
use DateTime;
|
||||
use Exception;
|
||||
use Mike42\Escpos\PrintConnectors\NetworkPrintConnector;
|
||||
use Mike42\Escpos\PrintConnectors\FilePrintConnector;
|
||||
use Mike42\Escpos\Printer;
|
||||
@@ -15,7 +14,7 @@ class PrintService extends BaseService
|
||||
$printer = self::getPrinterHandle();
|
||||
if ($printer === false)
|
||||
{
|
||||
throw new Exception('Unable to connect to printer');
|
||||
throw new \Exception('Unable to connect to printer');
|
||||
}
|
||||
|
||||
if ($printHeader)
|
||||
|
Reference in New Issue
Block a user