Logfiles

<WARNING NERDY CONTENT>

Tim was looking at logfiles for this program called Linkbot.  Back when I still worked there, I re-wrote all the Perl scripts that run it and wrote things to the logfiles. So for 6 years the scripts would write something like:

# Linkbot worked! Yay!1
print LOG “Linkbot run finished successfully (hah) at ” .localtime(time()) .”\n”;

to the log files.

All this time the people that read the logfiles thought that (hah) was a status code generated by Linkbot to indicate that it finished successfully.

It was something I wrote because even though Linkbot would finish, it never did it’s job properly because it was a pile of crap.

Lessons in good programming itt.

 

Leave a Reply