Added missing security check in log tool