Commit 40016906 authored by Rob Carleski's avatar Rob Carleski 🇮🇸
Browse files

Silence stderr for whatis checks.

parent 4eace7b9
......@@ -26,7 +26,7 @@ class Sifter:
config['google']['gam_command'],
'whatis',
self.account
])
], stderr=devnull)
except CalledProcessError as e:
self.logger.error(e.output, extra={'entity': self.account})
exit(2)
......@@ -58,7 +58,7 @@ class Sifter:
def sift(self, folder_id, in_private=False):
self.logger.info(
'message=Processing folder {}.'.format(folder_id),
'message=Processing folder {}'.format(folder_id),
extra={'entity': self.account}
)
try:
......@@ -230,7 +230,7 @@ class Sifter:
self.config['google']['gam_command'],
'whatis',
upload_user
])
], stderr=devnull)
except CalledProcessError as e:
self.logger.warning(e.output, extra={'entity': self.account})
upload_user = self.config['google']['admin_account']
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment