Let ZYPP_LIBSAT_FULLLOG be even more verbose than ZYPP_FULLLOG.
authorMichael Andres <ma@suse.de>
Mon, 29 Mar 2010 16:05:37 +0000 (18:05 +0200)
committerMichael Andres <ma@suse.de>
Mon, 29 Mar 2010 16:39:31 +0000 (18:39 +0200)
zypp/sat/detail/PoolImpl.cc

index 9ead4a1..1067d21 100644 (file)
@@ -180,11 +180,12 @@ namespace zypp
           ZYPP_THROW( Exception( _("Can not create sat-pool.") ) );
         }
         // initialialize logging
-        bool verbose = ( getenv("ZYPP_FULLLOG") || getenv("ZYPP_LIBSAT_FULLLOG") );
-       if (verbose)
-           ::pool_setdebuglevel( _pool, 2 );
+       if ( getenv("ZYPP_LIBSAT_FULLLOG") )
+         ::pool_setdebuglevel( _pool, 4 );
+       else if ( getenv("ZYPP_FULLLOG") )
+         ::pool_setdebuglevel( _pool, 2 );
        else
-           ::pool_setdebugmask(_pool, SAT_DEBUG_JOB|SAT_DEBUG_STATS);
+         ::pool_setdebugmask(_pool, SAT_DEBUG_JOB|SAT_DEBUG_STATS);
 
         ::pool_setdebugcallback( _pool, logSat, NULL );