From a2e51ecf80eaf1568a3e3b5de152bef29bf7b598 Mon Sep 17 00:00:00 2001 From: cutealien Date: Sat, 21 Oct 2017 19:28:05 +0000 Subject: [PATCH] Reduce log-messages for "loaded texture" and "loaded mesh" from ELL_INFORMATION to ELL_DEBUG. In larger projects those tend to spam the default log too much. git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5547 dfc29bdd-3216-0410-991c-e03cc46cb475 --- changes.txt | 1 + source/Irrlicht/CNullDriver.cpp | 2 +- source/Irrlicht/CSceneManager.cpp | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/changes.txt b/changes.txt index d42d6da5..21d4659e 100644 --- a/changes.txt +++ b/changes.txt @@ -1,6 +1,7 @@ -------------------------- Changes in 1.9 (not yet released) +- Reduce log-messages for "loaded texture" and "loaded mesh" from ELL_INFORMATION to ELL_DEBUG. - Add IGUIButton::setOverrideColor to allow overriding text-color (same function as statictexts and editboxes have). - Add functions IGUIButton::getClickShiftState and IGUIButton::getClickControlState to get shift/ctrl key-state when a button was clicked. Thanks @StarSonata for patch. - Add function ISceneManager::clearAllRegisteredNodesForRendering. diff --git a/source/Irrlicht/CNullDriver.cpp b/source/Irrlicht/CNullDriver.cpp index 0f0470d6..b1e9f9f3 100644 --- a/source/Irrlicht/CNullDriver.cpp +++ b/source/Irrlicht/CNullDriver.cpp @@ -647,7 +647,7 @@ video::ITexture* CNullDriver::loadTextureFromFile(io::IReadFile* file, const io: } if (texture) - os::Printer::log("Loaded texture", file->getFileName()); + os::Printer::log("Loaded texture", file->getFileName(), ELL_DEBUG); } for (u32 i = 0; i < imageArray.size(); ++i) diff --git a/source/Irrlicht/CSceneManager.cpp b/source/Irrlicht/CSceneManager.cpp index 1ed24fdb..25d52717 100644 --- a/source/Irrlicht/CSceneManager.cpp +++ b/source/Irrlicht/CSceneManager.cpp @@ -465,7 +465,7 @@ IAnimatedMesh* CSceneManager::getUncachedMesh(io::IReadFile* file, const io::pat if (!msh) os::Printer::log("Could not load mesh, file format seems to be unsupported", filename, ELL_ERROR); else - os::Printer::log("Loaded mesh", filename, ELL_INFORMATION); + os::Printer::log("Loaded mesh", filename, ELL_DEBUG); return msh; }