From 87ad6dbc78e4f4f6bb91afbe4a754f27049c0313 2013-07-30 21:49:16 From: MinRK Date: 2013-07-30 21:49:16 Subject: [PATCH] tweak support-file output move individual file output to debug level add bytes-written --- diff --git a/IPython/nbconvert/nbconvertapp.py b/IPython/nbconvert/nbconvertapp.py index 254d4ff..8f07505 100755 --- a/IPython/nbconvert/nbconvertapp.py +++ b/IPython/nbconvert/nbconvertapp.py @@ -288,7 +288,7 @@ class NbConvertApp(BaseIPythonApplication): resources = {} resources['unique_key'] = notebook_name resources['output_files_dir'] = '%s_files' % notebook_name - self.log.debug("Writing extra files to %s", resources['output_files_dir']) + self.log.info("Support files will be in %s", os.path.join(resources['output_files_dir'], '')) # Try to export try: diff --git a/IPython/nbconvert/writers/files.py b/IPython/nbconvert/writers/files.py index 171e254..a2a5d91 100644 --- a/IPython/nbconvert/writers/files.py +++ b/IPython/nbconvert/writers/files.py @@ -75,7 +75,7 @@ class FilesWriter(WriterBase): self._makedir(path) # Write file - self.log.info("Writing support file %s", dest) + self.log.debug("Writing %i bytes to support file %s", len(data), dest) with io.open(dest, 'wb') as f: f.write(data) @@ -102,7 +102,7 @@ class FilesWriter(WriterBase): dest = os.path.join(self.build_directory, dest) # Write conversion results. - self.log.info("Writing %s", dest) + self.log.info("Writing %i bytes to support file %s", len(output), dest) with io.open(dest, 'w') as f: f.write(output) return dest \ No newline at end of file