IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 31825


Ignore:
Timestamp:
Jul 5, 2011, 10:54:07 AM (15 years ago)
Author:
rhenders
Message:

some improvements to logging messages, now not sleeping in-between updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/czarpoll.pl

    r30952 r31825  
    161161            if ($lastDayDailyTasks ne $yesterday) {
    162162
    163                 print "* performing daily tasks (clean-up, metrics)";
     163                print "* performing daily tasks (clean-up, metrics)\n";
    164164
    165165                # create metrics for last 24 hours
     
    173173
    174174                # now cleanup tables from yesterday and optimize
    175                 print "* New day - performing cleanup\n";
     175                print "* Performing database cleanup\n";
    176176                $czarDb->cleanupDateRange($yesterday, $yesterday, $config->getCzarCleanupInterval());
     177                print "* Optimizing the database\n";
    177178                $czarDb->optimize();
    178179                $lastDayDailyTasks = $yesterday;
     
    226227
    227228        print "--------------------------------------------------------------------------\n";
    228         print "* Going to sleep\n";
    229         sleep($period);
    230         print "* Waking up\n";
     229        #print "* Going to sleep\n";
     230        #sleep($period);
     231        #print "* Waking up\n";
    231232    };
    232233}
Note: See TracChangeset for help on using the changeset viewer.