Commit 3035251a authored by Victor Poughon's avatar Victor Poughon

BUG: Print debug info only in debug builds

parent 036cb508
......@@ -562,34 +562,33 @@ I18nCoreApplication
// QTextCodec::setCodecForCStrings( QTextCodec::codecForName("System") );
qWarning()
qDebug()
<< "Codec for C-strings:"
<< ( QTextCodec::codecForCStrings()!=NULL
? QTextCodec::codecForCStrings()->name()
: "none" );
qWarning()
qDebug()
<< "Codec for Locale:"
<< ( QTextCodec::codecForLocale()!=NULL
? QTextCodec::codecForLocale()->name()
: "none" );
qWarning()
qDebug()
<< "Codec for Tr:"
<< ( QTextCodec::codecForTr()!=NULL
? QTextCodec::codecForTr()->name()
: "none" );
//
// 1. default UI language is english (no translation).
QLocale sys_lc( QLocale::system() );
// Trace system locale.
qWarning()
qDebug()
<< "Language:" << QLocale::languageToString( sys_lc.language() );
qWarning()
qDebug()
<< "Country:" << QLocale::countryToString( sys_lc.country() );
// Check system locale.
......
......@@ -212,7 +212,7 @@ VectorImageModel
// TODO: this choice should be done by the user during the import of the file
bool forceToCacheOvw = true;
qWarning() << tr( "The ImageIO used to read this file supports overviews." );
qDebug() << tr( "The ImageIO used to read this file supports overviews." );
if( nbOfAvailableOvw>0 )
{
......@@ -223,7 +223,7 @@ VectorImageModel
// TODO MSD: how to manage case of JPEG2000 with no overviews ? : wait GDAL support OpenJPEG ...
// The current file don't have overviews available
qWarning() << tr( "The file doesn't have overviews." );
qDebug() << tr( "The file doesn't have overviews." );
if( !forceToCacheOvw )
{
......
......@@ -335,8 +335,10 @@ ImageViewWidget
::Initialize( AbstractImageViewManipulator* manipulator,
AbstractImageViewRenderer* renderer )
{
#if OTB_DEBUG
// Test OpenGL.
ListGlVersions();
#endif
// Accept drops
setAcceptDrops( true );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment