Added code to detect WARNING in log file