Added check to prevent opening of logs in non-web mode