def _CreateArchivedFile(self, out_filename, out_subdir, datatype): if datatype == output_manager.Datatype.TEXT: try: logdog_helper.get_logdog_client() return LogdogArchivedFile(out_filename, out_subdir, datatype) except RuntimeError: return noop_output_manager.NoopArchivedFile() else: if self._bucket is None: return noop_output_manager.NoopArchivedFile() return GoogleStorageArchivedFile(out_filename, out_subdir, datatype, self._bucket)
def _CreateArchivedFile(self, out_filename, out_subdir, datatype): if datatype == output_manager.Datatype.TEXT: try: logdog_helper.get_logdog_client() return LogdogArchivedFile(out_filename, out_subdir, datatype) except RuntimeError: return noop_output_manager.NoopArchivedFile() else: if self._bucket is None: return noop_output_manager.NoopArchivedFile() return GoogleStorageArchivedFile( out_filename, out_subdir, datatype, self._bucket)