Fix out of memory error on ?latestlog

Put a limit on the amount of the log file that's displayed.