diff options
| author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2013-11-03 11:08:18 +0100 |
|---|---|---|
| committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2013-11-04 23:32:52 +0100 |
| commit | 4d2ce949b3b41f8bf0af446fa20205ddd229e579 (patch) | |
| tree | 01fa19471d9831b296bea5d7049f765e38b30bbb /rbutil/rbutilqt/base/voicefile.cpp | |
| parent | 335ec75d60bba82f23fc47b20f9390e0cba9c9c5 (diff) | |
| download | rockbox-4d2ce949b3b41f8bf0af446fa20205ddd229e579.zip rockbox-4d2ce949b3b41f8bf0af446fa20205ddd229e579.tar.gz rockbox-4d2ce949b3b41f8bf0af446fa20205ddd229e579.tar.bz2 rockbox-4d2ce949b3b41f8bf0af446fa20205ddd229e579.tar.xz | |
Use cutelogger for Rockbox Utility internal trace.
Change tracing from qDebug() to use cutelogger, which is available under the
LGPL2.1. This allows to automatically add filename and line number to the log,
and also provides multiple log levels.
Change-Id: I5dbdaf902ba54ea99f07ae10a07467c52fdac910
Diffstat (limited to 'rbutil/rbutilqt/base/voicefile.cpp')
| -rw-r--r-- | rbutil/rbutilqt/base/voicefile.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/rbutil/rbutilqt/base/voicefile.cpp b/rbutil/rbutilqt/base/voicefile.cpp index 70c0f7b..814ac53 100644 --- a/rbutil/rbutilqt/base/voicefile.cpp +++ b/rbutil/rbutilqt/base/voicefile.cpp @@ -23,6 +23,7 @@ #include "rbsettings.h" #include "systeminfo.h" #include "ziputil.h" +#include "Logger.h" VoiceFileCreator::VoiceFileCreator(QObject* parent) :QObject(parent) { @@ -65,7 +66,7 @@ bool VoiceFileCreator::createVoiceFile() // check if voicefile is present on target QString fn = m_mountpoint + "/.rockbox/langs/voicestrings.zip"; - qDebug() << "[VoiceFile] searching for zipped voicestrings at" << fn; + LOG_INFO() << "searching for zipped voicestrings at" << fn; if(QFileInfo(fn).isFile()) { // search for binary voice strings file in archive ZipUtil z(this); @@ -79,7 +80,7 @@ bool VoiceFileCreator::createVoiceFile() } } if(index < contents.size()) { - qDebug() << "[VoiceFile] extracting strings file from zip"; + LOG_INFO() << "extracting strings file from zip"; // extract strings QTemporaryFile stringsfile; stringsfile.open(); @@ -153,7 +154,7 @@ bool VoiceFileCreator::createVoiceFile() genlang.replace("%REVISION%", version); genlang.replace("%FEATURES%", features); QUrl genlangUrl(genlang); - qDebug() << "[VoiceFileCreator] downloading" << genlangUrl; + LOG_INFO() << "downloading" << genlangUrl; //download the correct genlang output QTemporaryFile *downloadFile = new QTemporaryFile(this); @@ -175,7 +176,7 @@ bool VoiceFileCreator::createVoiceFile() void VoiceFileCreator::downloadDone(bool error) { - qDebug() << "[VoiceFileCreator] download done, error:" << error; + LOG_INFO() << "download done, error:" << error; // update progress bar emit logProgress(1,1); @@ -253,7 +254,7 @@ void VoiceFileCreator::create(void) m_talkList.append(entry); } else if(entry.toSpeak.isEmpty()) { - qDebug() << "[Voicefile] Empty voice string for ID" << id; + LOG_WARNING() << "Empty voice string for ID" << id; } else { m_talkList.append(entry); @@ -314,7 +315,7 @@ void VoiceFileCreator::create(void) return; } - qDebug() << "[VoiceFile] Running voicefont, format" << m_voiceformat; + LOG_INFO() << "Running voicefont, format" << m_voiceformat; voicefont(ids2,m_targetid,m_path.toLocal8Bit().data(), output, m_voiceformat); // ids2 and output are closed by voicefont(). |