mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-03-22 20:28:58 -04:00
Restore some logging.
This commit is contained in:
parent
280346e39b
commit
1361e55f47
2
main.cpp
2
main.cpp
@ -96,6 +96,6 @@ static int runQtApplication(int argc, char* argv[])
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
int res = runQtApplication(argc, argv);
|
||||
qDebug("regular program exit");
|
||||
qWarning("SDRangelove quit.");
|
||||
return res;
|
||||
}
|
||||
|
@ -108,7 +108,7 @@ bool RTLSDRInput::startInput(int device)
|
||||
qCritical("error accessing USB device");
|
||||
goto failed;
|
||||
}
|
||||
qDebug("RTLSDRInput open: %s %s, SN: %s", vendor, product, serial);
|
||||
qWarning("RTLSDRInput open: %s %s, SN: %s", vendor, product, serial);
|
||||
m_deviceDescription = QString("%1 (SN %2)").arg(product).arg(serial);
|
||||
|
||||
if((res = rtlsdr_set_sample_rate(m_dev, 1536000)) < 0) {
|
||||
|
@ -306,12 +306,12 @@ void MainWindow::handleMessages()
|
||||
{
|
||||
Message* message;
|
||||
while((message = m_messageQueue->accept()) != NULL) {
|
||||
//qDebug("Message: %s", message->getIdentifier());
|
||||
qDebug("Message: %s", message->getIdentifier());
|
||||
if(DSPEngineReport::match(message)) {
|
||||
DSPEngineReport* rep = (DSPEngineReport*)message;
|
||||
m_sampleRate = rep->getSampleRate();
|
||||
m_centerFrequency = rep->getCenterFrequency();
|
||||
//qDebug("SampleRate:%d, CenterFrequency:%llu", rep->getSampleRate(), rep->getCenterFrequency());
|
||||
qDebug("SampleRate:%d, CenterFrequency:%llu", rep->getSampleRate(), rep->getCenterFrequency());
|
||||
updateCenterFreqDisplay();
|
||||
updateSampleRate();
|
||||
message->completed();
|
||||
|
@ -260,7 +260,7 @@ void PluginManager::loadPlugins(const QDir& dir)
|
||||
QPluginLoader* loader = new QPluginLoader(pluginsDir.absoluteFilePath(fileName));
|
||||
PluginInterface* plugin = qobject_cast<PluginInterface*>(loader->instance());
|
||||
if(loader->isLoaded())
|
||||
qDebug("loaded plugin %s", qPrintable(fileName));
|
||||
qWarning("loaded plugin %s", qPrintable(fileName));
|
||||
if(plugin != NULL) {
|
||||
m_plugins.append(Plugin(fileName, loader, plugin));
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user