only check the log file if it is actually used.