Log java util stuff using the new logging method

This commit is contained in:
Petr Mrázek 2013-10-06 03:20:19 +02:00
parent 8b18af0515
commit 77d5ea36ae

View File

@ -20,7 +20,7 @@
#include <QStringList> #include <QStringList>
#include <QString> #include <QString>
#include <QDir> #include <QDir>
#include <QDebug> #include <logger/QsLog.h>
#if WINDOWS #if WINDOWS
#include <windows.h> #include <windows.h>
@ -74,7 +74,7 @@ QStringList JavaUtils::FindJavaPath()
if(paths.length() <= 0) if(paths.length() <= 0)
{ {
qWarning() << "Failed to find Java in the Windows registry - defaulting to \"java\""; QLOG_WARN() << "Failed to find Java in the Windows registry - defaulting to \"java\"";
paths << "java"; paths << "java";
} }
@ -83,7 +83,7 @@ QStringList JavaUtils::FindJavaPath()
#elif OSX #elif OSX
QStringList JavaUtils::FindJavaPath() QStringList JavaUtils::FindJavaPath()
{ {
qWarning() << "OS X Java detection incomplete - defaulting to \"java\""; QLOG_INFO() << "OS X Java detection incomplete - defaulting to \"java\"";
QStringList paths; QStringList paths;
paths << "java"; paths << "java";
@ -94,7 +94,7 @@ QStringList JavaUtils::FindJavaPath()
#elif LINUX #elif LINUX
QStringList JavaUtils::FindJavaPath() QStringList JavaUtils::FindJavaPath()
{ {
qWarning() << "Linux Java detection incomplete - defaulting to \"java\""; QLOG_INFO() << "Linux Java detection incomplete - defaulting to \"java\"";
QStringList paths; QStringList paths;
paths << "java"; paths << "java";
@ -104,7 +104,7 @@ QStringList JavaUtils::FindJavaPath()
#else #else
QStringList JavaUtils::FindJavaPath() QStringList JavaUtils::FindJavaPath()
{ {
qWarning() << "Unknown operating system build - defaulting to \"java\""; QLOG_INFO() << "Unknown operating system build - defaulting to \"java\"";
QStringList paths; QStringList paths;
paths << "java"; paths << "java";