Changeset 11185 in ntrip for trunk/BNC/src/bncnetquerys.cpp


Ignore:
Timestamp:
Nov 9, 2026, 12:15:48 PM (12 hours ago)
Author:
stuerze
Message:

Structured logging improved

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncnetquerys.cpp

    r10778 r11185  
    191191
    192192  if (!_serialPort->isOpen()) {
    193     emit newMessage(_url.path().toLatin1().replace(0,1,"") + ": Cannot open serial port " + _portString.toLatin1()
    194                     + ": " + _serialPort->errorString().toLatin1(), true);
     193    emit newLogRecord(t_logRecord::message(t_logRecord::error, _url.path().toLatin1().replace(0,1,"") + ": Cannot open serial port " + _portString.toLatin1()
     194                    + ": " + _serialPort->errorString().toLatin1()), true);
    195195    delete _serialPort;
    196196    _serialPort = 0;
    … …  
    199199  }
    200200  else {
    201     emit(newMessage(_url.path().toLatin1().replace(0,1,"") + ": Serial port " + _portString.toLatin1()
    202                     + " is connected: " , true));
     201    emit newLogRecord(t_logRecord::message(t_logRecord::info, _url.path().toLatin1().replace(0,1,"") + ": Serial port " + _portString.toLatin1()
     202                    + " is connected: "), true);
    203203    _status = running;
    204204  }
Note: See TracChangeset for help on using the changeset viewer.