Index: trunk/Ohana/src/opihi/pcontrol/CheckIdleHost.c
===================================================================
--- trunk/Ohana/src/opihi/pcontrol/CheckIdleHost.c	(revision 26411)
+++ trunk/Ohana/src/opihi/pcontrol/CheckIdleHost.c	(revision 28158)
@@ -8,5 +8,4 @@
 static float MAX_WANTHOST_WAIT = 10.0;
 static float MAX_CONNECT_TIME = 36000.0;
-static FILE *logfile = NULL;
 
   /* if this host has been connected for too long, disconnect (will automatically reconnect) */
@@ -35,8 +34,4 @@
   struct timeval now;
   float dtime;
-
-  if (logfile == NULL) { 
-    logfile = fopen ("pcontrol.log", "w");
-  }
 
   ASSERT (host, "host not set");
@@ -69,5 +64,5 @@
     host[0].job = (struct Job *) job;
 
-    // if (logfile) fprintf (logfile, "start needhost %s (job host %s) : %s\n", host[0].hostname, job[0].hostname, job[0].argv[0]);
+    // gprint (GP_ERR, "start needhost %s (job host %s) : %s\n", host[0].hostname, job[0].hostname, job[0].argv[0]);
     AddMachineJob (host, job);
 
@@ -90,5 +85,5 @@
     host[0].job = (struct Job *) job;
 
-    // if (logfile) fprintf (logfile, "start wanthost %s (job host %s) : %s\n", host[0].hostname, job[0].hostname, job[0].argv[0]);
+    // gprint (GP_ERR, "start wanthost %s (job host %s) : %s\n", host[0].hostname, job[0].hostname, job[0].argv[0]);
     AddMachineJob (host, job);
 
@@ -111,5 +106,5 @@
     host[0].job = (struct Job *) job;
 
-    // if (logfile) fprintf (logfile, "start  anyhost %s (job host %s) : %s\n", host[0].hostname, job[0].hostname, job[0].argv[0]);
+    // gprint (GP_ERR, "start  anyhost %s (job host %s) : %s\n", host[0].hostname, job[0].hostname, job[0].argv[0]);
     AddMachineJob (host, job);
 
@@ -133,5 +128,5 @@
     if (!CheckMachineJobs (host, job)) continue;
 
-    if (logfile) fprintf (logfile, "start wanthost(2) %s (job host %s) : %s\n", host[0].hostname, job[0].hostname, job[0].argv[0]);
+    gprint (GP_ERR, "start wanthost(2) %s (job host %s) : %s\n", host[0].hostname, job[0].hostname, job[0].argv[0]);
     AddMachineJob (host, job);
 
