[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdenonbeta/icecream/icecream/services
From:       Stephan Kulow <coolo () kde ! org>
Date:       2006-01-16 9:14:14
Message-ID: 1137402854.724811.8781.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 498780 by coolo:

more debug


 M  +12 -7     scheduler.cpp  


--- trunk/kdenonbeta/icecream/icecream/services/scheduler.cpp #498779:498780
@@ -890,7 +890,10 @@
     if (cs)
       break;
 
+#if DEBUG_SCHEDULER > 0
     trace() << "tried to pick a server for " << job->id;
+#endif
+
     /* Ignore the load on the submitter itself if no other host could
        be found.  We only obey to its max job number.  */
     cs = job->submitter;
@@ -918,7 +921,9 @@
       }
     else
       {
+#if DEBUG_SCHEDULER > 0
         trace () << " and had to use submitter\n";
+#endif
         break;
       }
   }
@@ -991,7 +996,7 @@
   if (!allow_run_as_user && !m->chroot_possible)
     return false;
 
-  trace() << "login " << m->nodename << " protocol version: " << c->protocol << \
endl; +  trace() << "login " << m->nodename << " protocol version: " << c->protocol;
 
   CS *cs = static_cast<CS *>(c);
   cs->remote_port = m->port;
@@ -1007,11 +1012,11 @@
   handle_monitor_stats( cs );
   css.push_back (cs);
 
-#if 0
-  trace() << cs->nodename << ": [";
-  for (list<string>::const_iterator it = m->envs.begin();
+#if 1
+  trace() << " [";
+  for (Environments::const_iterator it = m->envs.begin();
        it != m->envs.end(); ++it)
-    trace() << *it << ", ";
+    trace() << it->second << "(" << it->first << "), ";
   trace() << "]\n";
 #endif
 
@@ -1074,8 +1079,8 @@
   job->start_on_scheduler = time(0);
   CS *cs = dynamic_cast<CS*>( c );
   notify_monitors (MonJobBeginMsg (m->job_id, m->stime, cs->hostid));
-#if DEBUG_SCHEDULER > 0
-  trace() << "BEGIN: " << m->job_id << " client=" << j->submitter->nodename << "(" \
<< job->target_platform  +#if DEBUG_SCHEDULER >= 0
+  trace() << "BEGIN: " << m->job_id << " client=" << job->submitter->nodename << "(" \
                << job->target_platform 
           << ")" << " server=" << job->server->nodename << "(" << \
job->server->host_platform << ")" << endl;  #endif
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic