From 5c2ba27cc57b9912ae92709c6e6fdbbfff3b69f2 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Tue, 30 Oct 2018 22:05:39 +0100 Subject: [PATCH] [DEV] reduce some log level --- ewol/context/ConfigFont.cpp | 6 +++--- ewol/resource/FontFreeType.cpp | 2 +- ewol/resource/Texture.cpp | 8 ++++---- ewol/resource/TextureFile.cpp | 2 +- ewol/resource/TexturedFont.cpp | 21 ++++++++++----------- 5 files changed, 19 insertions(+), 20 deletions(-) diff --git a/ewol/context/ConfigFont.cpp b/ewol/context/ConfigFont.cpp index d646c3ad..886a4ab3 100644 --- a/ewol/context/ConfigFont.cpp +++ b/ewol/context/ConfigFont.cpp @@ -28,16 +28,16 @@ ewol::context::ConfigFont::~ConfigFont() { void ewol::context::ConfigFont::set(const etk::String& _fontName, int32_t _size) { m_name = _fontName; m_size = _size; - EWOL_INFO("Set default Font : '" << m_name << "' size=" << m_size); + EWOL_DEBUG("Set default Font : '" << m_name << "' size=" << m_size); } void ewol::context::ConfigFont::setSize(int32_t _size) { m_size = _size; - EWOL_INFO("Set default Font : '" << m_name << "' size=" << m_size << " (change size only)"); + EWOL_DEBUG("Set default Font : '" << m_name << "' size=" << m_size << " (change size only)"); } void ewol::context::ConfigFont::setName(const etk::String& _fontName) { m_name = _fontName; - EWOL_INFO("Set default Font : '" << m_name << "' size=" << m_size << " (change name only)"); + EWOL_DEBUG("Set default Font : '" << m_name << "' size=" << m_size << " (change name only)"); } diff --git a/ewol/resource/FontFreeType.cpp b/ewol/resource/FontFreeType.cpp index 9e1b80f7..d74dd09f 100644 --- a/ewol/resource/FontFreeType.cpp +++ b/ewol/resource/FontFreeType.cpp @@ -78,7 +78,7 @@ void ewol::resource::FontFreeType::init(const etk::Uri& _uri) { EWOL_ERROR("... another error code means that the font file could not ... be opened or read, or simply that it is broken..."); } else { // all OK - EWOL_INFO("load font : \"" << _uri << "\" glyph count = " << (int)m_fftFace->num_glyphs); + EWOL_DEBUG("load font : \"" << _uri << "\" glyph count = " << (int)m_fftFace->num_glyphs); m_init = true; //display(); } diff --git a/ewol/resource/Texture.cpp b/ewol/resource/Texture.cpp index 1b0c1a91..0320e194 100644 --- a/ewol/resource/Texture.cpp +++ b/ewol/resource/Texture.cpp @@ -142,9 +142,9 @@ bool ewol::resource::Texture::updateContext() { m_lastSize = m_data.getSize(); m_lastTypeObject = typeObject; m_lastSizeObject = sizeObject; - EWOL_WARNING("TEXTURE: add [" << getId() << "]=" << m_data.getSize() << "=>" << m_data.getGPUSize() << " OGl_Id=" << m_texId << " type=" << m_data.getType()); + EWOL_DEBUG("TEXTURE: add [" << getId() << "]=" << m_data.getSize() << "=>" << m_data.getGPUSize() << " OGl_Id=" << m_texId << " type=" << m_data.getType()); } else { - EWOL_WARNING("TEXTURE: update [" << getId() << "]=" << m_data.getSize() << "=>" << m_data.getGPUSize() << " OGl_Id=" << m_texId << " type=" << m_data.getType()); + EWOL_DEBUG("TEXTURE: update [" << getId() << "]=" << m_data.getSize() << "=>" << m_data.getGPUSize() << " OGl_Id=" << m_texId << " type=" << m_data.getType()); } // in all case we set the texture properties : // TODO : check error ??? @@ -300,13 +300,13 @@ void ewol::resource::Texture::setImageSize(ivec2 _newSize) { } void ewol::resource::Texture::set(egami::Image _image) { - EWOL_WARNING("Set a new image in a texture:"); + EWOL_DEBUG("Set a new image in a texture:"); ethread::RecursiveLock lock(m_mutex); if (_image.exist() == false) { EWOL_ERROR("ERROR when loading the image : [raw data]"); return; } - EWOL_WARNING(" size=" << _image.getSize()); + EWOL_DEBUG(" size=" << _image.getSize()); etk::swap(m_data, _image); ivec2 tmp = m_data.getSize(); m_realImageSize = vec2(tmp.x(), tmp.y()); diff --git a/ewol/resource/TextureFile.cpp b/ewol/resource/TextureFile.cpp index c6a36af8..f37acf8c 100644 --- a/ewol/resource/TextureFile.cpp +++ b/ewol/resource/TextureFile.cpp @@ -106,7 +106,7 @@ ememory::SharedPtr ewol::resource::TextureFile::cre if (object != null) { return object; } - EWOL_INFO("CREATE: TextureFile: '" << tmpFilename << "' size=" << _size); + EWOL_DEBUG("CREATE: TextureFile: '" << tmpFilename << "' size=" << _size); // need to crate a new one ... object = ememory::SharedPtr(ETK_NEW(ewol::resource::TextureFile)); if (object == null) { diff --git a/ewol/resource/TexturedFont.cpp b/ewol/resource/TexturedFont.cpp index 762689eb..df161f11 100644 --- a/ewol/resource/TexturedFont.cpp +++ b/ewol/resource/TexturedFont.cpp @@ -127,11 +127,11 @@ void ewol::resource::TexturedFont::init(const etk::String& _fontName) { etk::Vector output = etk::uri::listRecursive(folderList[folderID]); etk::Vector split = etk::split(localName, ';'); - EWOL_INFO("try to find font named : " << split << " in: " << output); + EWOL_DEBUG("try to find font named : " << split << " in: " << output); //EWOL_CRITICAL("parse string : " << split); bool hasFindAFont = false; for (size_t jjj=0; jjj= 0; iii--) { @@ -214,7 +213,7 @@ void ewol::resource::TexturedFont::init(const etk::String& _fontName) { m_font[iiiFontId] = null; continue; } - EWOL_INFO("Load FONT [" << iiiFontId << "] name : \"" << m_fileName[iiiFontId] << "\" == > size=" << m_size); + EWOL_DEBUG("Load FONT [" << iiiFontId << "] name : \"" << m_fileName[iiiFontId] << "\" == > size=" << m_size); m_font[iiiFontId] = ewol::resource::FontFreeType::create(m_fileName[iiiFontId]); if (m_font[iiiFontId] == null) { EWOL_DEBUG("error in loading FONT [" << iiiFontId << "] name : \"" << m_fileName[iiiFontId] << "\" == > size=" << m_size );