Fixed a logging bug for ipg (ipython notebook) module