From 44698a593feb60d806130a1f276bd17c4cafb2b8 Mon Sep 17 00:00:00 2001 From: Dan Paulat Date: Wed, 15 May 2024 23:20:46 -0500 Subject: [PATCH] Update detailed serial port and GPS logging from debug to trace --- .../scwx/qt/manager/position_manager.cpp | 2 +- .../source/scwx/qt/ui/serial_port_dialog.cpp | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/scwx-qt/source/scwx/qt/manager/position_manager.cpp b/scwx-qt/source/scwx/qt/manager/position_manager.cpp index a6d1e2f1..f806bfe2 100644 --- a/scwx-qt/source/scwx/qt/manager/position_manager.cpp +++ b/scwx-qt/source/scwx/qt/manager/position_manager.cpp @@ -139,7 +139,7 @@ void PositionManager::Impl::CreatePositionSource() if (coordinate != position_.coordinate()) { - logger_->debug("Position updated: {}, {}", + logger_->trace("Position updated: {}, {}", coordinate.latitude(), coordinate.longitude()); } diff --git a/scwx-qt/source/scwx/qt/ui/serial_port_dialog.cpp b/scwx-qt/source/scwx/qt/ui/serial_port_dialog.cpp index 4fc91660..d489c1d6 100644 --- a/scwx-qt/source/scwx/qt/ui/serial_port_dialog.cpp +++ b/scwx-qt/source/scwx/qt/ui/serial_port_dialog.cpp @@ -186,13 +186,13 @@ int SerialPortDialog::baud_rate() void SerialPortDialog::Impl::LogSerialPortInfo(const QSerialPortInfo& info) { - logger_->debug("Serial Port: {}", info.portName().toStdString()); - logger_->debug(" Description: {}", info.description().toStdString()); - logger_->debug(" System Loc: {}", info.systemLocation().toStdString()); - logger_->debug(" Manufacturer: {}", info.manufacturer().toStdString()); - logger_->debug(" Vendor ID: {}", info.vendorIdentifier()); - logger_->debug(" Product ID: {}", info.productIdentifier()); - logger_->debug(" Serial No: {}", info.serialNumber().toStdString()); + logger_->trace("Serial Port: {}", info.portName().toStdString()); + logger_->trace(" Description: {}", info.description().toStdString()); + logger_->trace(" System Loc: {}", info.systemLocation().toStdString()); + logger_->trace(" Manufacturer: {}", info.manufacturer().toStdString()); + logger_->trace(" Vendor ID: {}", info.vendorIdentifier()); + logger_->trace(" Product ID: {}", info.productIdentifier()); + logger_->trace(" Serial No: {}", info.serialNumber().toStdString()); } void SerialPortDialog::Impl::RefreshSerialDevices() @@ -326,7 +326,7 @@ void SerialPortDialog::Impl::ReadComPortProperties( properties.busReportedDeviceDescription_ = GetDevicePropertyString( deviceInfoSet, deviceInfoData, DEVPKEY_Device_BusReportedDeviceDesc); - logger_->debug( + logger_->trace( "Port: {} ({})", portName, properties.busReportedDeviceDescription_); portPropertiesMap.emplace(portName, std::move(properties)); @@ -422,7 +422,7 @@ void SerialPortDialog::Impl::ReadComPortSettings( std::string portData = buffer; - logger_->debug("Port Settings: {} ({})", portName, portData); + logger_->trace("Port Settings: {} ({})", portName, portData); StorePortSettings(portName, portData, portSettingsMap); }