diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-02-02 02:14:14 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-04-12 20:57:17 +0200 |
commit | cd9d37aac402b0edd0f12b66fd7f2fdd5fe6dff5 (patch) | |
tree | d8dd6499e29fbf5196b0d5a20f0a0da386b575bb /logic/ftb | |
parent | 28a39ef7ac3e3dfe4ea65d02af01d1a18e3d4af6 (diff) | |
download | MultiMC-cd9d37aac402b0edd0f12b66fd7f2fdd5fe6dff5.tar MultiMC-cd9d37aac402b0edd0f12b66fd7f2fdd5fe6dff5.tar.gz MultiMC-cd9d37aac402b0edd0f12b66fd7f2fdd5fe6dff5.tar.lz MultiMC-cd9d37aac402b0edd0f12b66fd7f2fdd5fe6dff5.tar.xz MultiMC-cd9d37aac402b0edd0f12b66fd7f2fdd5fe6dff5.zip |
SCRATCH nuke the overcomplicated logger, use a simple one.
Diffstat (limited to 'logic/ftb')
-rw-r--r-- | logic/ftb/FTBProfileStrategy.cpp | 6 | ||||
-rw-r--r-- | logic/ftb/OneSixFTBInstance.cpp | 12 |
2 files changed, 9 insertions, 9 deletions
diff --git a/logic/ftb/FTBProfileStrategy.cpp b/logic/ftb/FTBProfileStrategy.cpp index d5b3c90f..87be0ff9 100644 --- a/logic/ftb/FTBProfileStrategy.cpp +++ b/logic/ftb/FTBProfileStrategy.cpp @@ -106,10 +106,10 @@ void FTBProfileStrategy::loadUserPatches() QFileInfo finfo(filename); if(!finfo.exists()) { - QLOG_INFO() << "Patch file " << filename << " was deleted by external means..."; + qDebug() << "Patch file " << filename << " was deleted by external means..."; continue; } - QLOG_INFO() << "Reading" << filename << "by user order"; + qDebug() << "Reading" << filename << "by user order"; auto file = ProfileUtils::parseJsonFile(finfo, false); // sanity check. prevent tampering with files. if (file->fileId != id) @@ -124,7 +124,7 @@ void FTBProfileStrategy::loadUserPatches() for (auto info : patches.entryInfoList(QStringList() << "*.json", QDir::Files)) { // parse the file - QLOG_INFO() << "Reading" << info.fileName(); + qDebug() << "Reading" << info.fileName(); auto file = ProfileUtils::parseJsonFile(info, true); // ignore builtins if (file->fileId == "net.minecraft") diff --git a/logic/ftb/OneSixFTBInstance.cpp b/logic/ftb/OneSixFTBInstance.cpp index 4de2ce78..4902be08 100644 --- a/logic/ftb/OneSixFTBInstance.cpp +++ b/logic/ftb/OneSixFTBInstance.cpp @@ -21,11 +21,11 @@ void OneSixFTBInstance::copy(const QDir &newDir) QStringList libraryNames; // create patch file { - QLOG_DEBUG() << "Creating patch file for FTB instance..."; + qDebug()<< "Creating patch file for FTB instance..."; QFile f(minecraftRoot() + "/pack.json"); if (!f.open(QFile::ReadOnly)) { - QLOG_ERROR() << "Couldn't open" << f.fileName() << ":" << f.errorString(); + qCritical() << "Couldn't open" << f.fileName() << ":" << f.errorString(); return; } QJsonObject root = QJsonDocument::fromJson(f.readAll()).object(); @@ -68,14 +68,14 @@ void OneSixFTBInstance::copy(const QDir &newDir) QFile out(newDir.absoluteFilePath("patches/ftb.json")); if (!out.open(QFile::WriteOnly | QFile::Truncate)) { - QLOG_ERROR() << "Couldn't open" << out.fileName() << ":" << out.errorString(); + qCritical() << "Couldn't open" << out.fileName() << ":" << out.errorString(); return; } out.write(QJsonDocument(root).toJson()); } // copy libraries { - QLOG_DEBUG() << "Copying FTB libraries"; + qDebug() << "Copying FTB libraries"; for (auto library : libraryNames) { OneSixLibrary *lib = new OneSixLibrary(library); @@ -86,11 +86,11 @@ void OneSixFTBInstance::copy(const QDir &newDir) } if (!ensureFilePathExists(out)) { - QLOG_ERROR() << "Couldn't create folder structure for" << out; + qCritical() << "Couldn't create folder structure for" << out; } if (!QFile::copy(librariesPath().absoluteFilePath(lib->storagePath()), out)) { - QLOG_ERROR() << "Couldn't copy" << lib->rawName(); + qCritical() << "Couldn't copy" << lib->rawName(); } } } |