Prevents logger from logging twice in IPython notebooks