Log monitor does not work after first log retrieval