Restore some logging.

This commit is contained in:
Hexameron 2014-05-21 11:27:55 +01:00
parent 280346e39b
commit 1361e55f47
4 changed files with 5 additions and 5 deletions

View File

@ -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;
}

View File

@ -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) {

View File

@ -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();

View File

@ -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 {