Author: schubi2
Date: Thu Nov 29 09:57:31 2007
New Revision: 7969
URL: http://svn.opensuse.org/viewcvs/zypp?rev=7969&view=rev
Log:
addapted to new sat debug
Modified:
trunk/libzypp/zypp/sat/detail/PoolImpl.cc
Modified: trunk/libzypp/zypp/sat/detail/PoolImpl.cc
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/sat/detail/PoolImpl.cc?rev=7969&r1=7968&r2=7969&view=diff
==============================================================================
--- trunk/libzypp/zypp/sat/detail/PoolImpl.cc (original)
+++ trunk/libzypp/zypp/sat/detail/PoolImpl.cc Thu Nov 29 09:57:31 2007
@@ -14,7 +14,6 @@
#include
#include
#include
-#include
}
#include <iostream>
@@ -36,9 +35,13 @@
namespace detail
{ /////////////////////////////////////////////////////////////////
- void logSat( char *logString )
+ void logSat( struct _Pool *, void *data, int type, const char *logString )
{
- _MIL("satsolver") << logString;
+ if ((type & (SAT_FATAL|SAT_ERROR)) == 0) {
+ _MIL("satsolver") << logString;
+ } else {
+ _DBG("satsolver") << logString;
+ }
}
///////////////////////////////////////////////////////////////////
@@ -66,8 +69,8 @@
}
// initialialize logging
bool verbose = ( getenv("ZYPP_FULLLOG") || getenv("ZYPP_LIBSAT_FULLLOG") );
- ::sat_set_debug( verbose ? DEBUG_5 : ERROR, 1 ); // logging linenumer, function,....
- ::sat_set_debugCallback( logSat );
+ ::pool_setdebuglevel (_pool, verbose ? 5 : 0 );
+ ::pool_setdebugcallback(_pool, logSat, NULL );
}
///////////////////////////////////////////////////////////////////
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org