Prevent hiding log message from showing up multiple times (and prevent hiding multiple times)