diff --git a/pyp2rpm/logger.py b/pyp2rpm/logger.py
index <HASH>..<HASH> 100644
--- a/pyp2rpm/logger.py
+++ b/pyp2rpm/logger.py
@@ -16,11 +16,11 @@ class LoggerWriter(object):
         self.errors = None
 
     def write(self, message):
-        if message != '\n':
-            self.level(message)
+        if message not in ('\n', ''):
+            self.level(message.rstrip('\n'))
 
     def flush(self):
-        self.level(sys.stderr)
+        pass
 
 
 class LevelFilter(logging.Filter):
diff --git a/pyp2rpm/metadata_extractors.py b/pyp2rpm/metadata_extractors.py
index <HASH>..<HASH> 100644
--- a/pyp2rpm/metadata_extractors.py
+++ b/pyp2rpm/metadata_extractors.py
@@ -388,7 +388,7 @@ class DistMetadataExtractor(SetupPyMetadataExtractor):
                     raise SystemExit(3)
                 
                 with utils.ChangeDir(os.path.dirname(setup_py)):
-                    with utils.RedirectStdStreams(stdout=os.devnull,
+                    with utils.RedirectStdStreams(stdout=LoggerWriter(logger.debug),
                                                   stderr=LoggerWriter(logger.warning)):
                         extract_distribution.run_setup(setup_py, 'bdist_rpm')
Fix aborting redirection of streams to logger
- redirect stdout to logging debug level