Guard the log calls