mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 15:45:38 +00:00
Some improvements to the application logging.
This commit is contained in:
parent
ed60ab4e3a
commit
f4cfcbed65
|
@ -50,7 +50,7 @@ FileData* findOrCreateFile(SystemData* system, const std::string& path, FileType
|
|||
return treeNode;
|
||||
|
||||
if (type == FOLDER) {
|
||||
LOG(LogWarning) << "Gamelist: folder doesn't exist, won't create it";
|
||||
LOG(LogWarning) << "A folder defined in the gamelist file does not exist:";
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
@ -66,7 +66,7 @@ FileData* findOrCreateFile(SystemData* system, const std::string& path, FileType
|
|||
// Don't create folders unless they're including any games.
|
||||
// If the type is FOLDER it's going to be empty, so don't bother.
|
||||
if (type == FOLDER) {
|
||||
LOG(LogWarning) << "Gamelist: folder doesn't exist, won't create it";
|
||||
LOG(LogWarning) << "A folder defined in the gamelist file does not exist:";
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
@ -144,8 +144,7 @@ void parseGamelist(SystemData* system)
|
|||
|
||||
FileData* file = findOrCreateFile(system, path, type);
|
||||
if (!file) {
|
||||
LOG(LogError) << "Error finding/creating FileData for \"" <<
|
||||
path << "\", skipping entry";
|
||||
LOG(LogError) << "Could not find or create \"" << path << "\", skipping entry";
|
||||
continue;
|
||||
}
|
||||
else if (!file->isArcadeAsset()) {
|
||||
|
|
|
@ -490,11 +490,9 @@ void ThemeData::parseElement(const pugi::xml_node& root,
|
|||
if (!ResourceManager::getInstance()->fileExists(path)) {
|
||||
std::stringstream ss;
|
||||
// "From theme yadda yadda, included file yadda yadda.
|
||||
ss << " Warning " << error.msg;
|
||||
ss << "could not find file \"" << node.text().get() << "\" ";
|
||||
if (node.text().get() != path)
|
||||
ss << "(which resolved to \"" << path << "\") ";
|
||||
LOG(LogWarning) << ss.str();
|
||||
LOG(LogWarning) << error.msg << ":";
|
||||
LOG(LogWarning) << "Could not find file \"" << node.text().get() << "\" " <<
|
||||
((node.text().get() != path) ? "which resolves to \"" + path + "\"" : "");
|
||||
}
|
||||
element.properties[node.name()] = path;
|
||||
break;
|
||||
|
|
|
@ -68,10 +68,9 @@ public:
|
|||
|
||||
inline void setFiles(const std::deque<std::string>& deque)
|
||||
{
|
||||
*this << "From theme \"" << deque.front() << "\"\n";
|
||||
*this << "From theme \"" << deque.front() << "\"";
|
||||
for (auto it = deque.cbegin() + 1; it != deque.cend(); it++)
|
||||
*this << " (from included file \"" << (*it) << "\")\n";
|
||||
*this << " ";
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue