Prevent logging messages from appearing twice