From fcd2f68f681793120b6a07e2d4e1a764e9217395 Mon Sep 17 00:00:00 2001 From: Laurent Trinques Date: Sun, 29 Sep 2024 12:54:47 +0200 Subject: [PATCH] dxftoelmt: add Print standard error and filepath to the log file --- sources/dxf/dxftoelmt.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/sources/dxf/dxftoelmt.cpp b/sources/dxf/dxftoelmt.cpp index 45d41d016..0cfd0f100 100644 --- a/sources/dxf/dxftoelmt.cpp +++ b/sources/dxf/dxftoelmt.cpp @@ -22,6 +22,8 @@ #include #include #include +#include +#include /** * @brief dxftoElmt @@ -43,12 +45,15 @@ QByteArray dxfToElmt(const QString &file_path) const QStringList arguments{file_path, QStringLiteral("-v")}; process_.start(program, arguments); - + if (process_.waitForFinished()) { - const auto byte_array{process_.readAll()}; - process_.close(); - return byte_array; + qInfo()<<"\n Start converting DXF file..........\n"<< file_path; + qInfo()<< process_.readAllStandardError(); //Print standard error to log file + + const auto byte_array{process_.readAll()}; + process_.close(); + return byte_array; } else {