Skip to content

Commit

Permalink
Log exception
Browse files Browse the repository at this point in the history
  • Loading branch information
enolfc committed Feb 22, 2021
1 parent efbd07e commit 413d1f1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cloud_info_provider/collectors/compute.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import itertools
import logging

from cloud_info_provider.collectors import base
from cloud_info_provider.exceptions import CloudInfoException

logger = logging.getLogger(__name__)


class ComputeCollector(base.BaseCollector):
def __init__(self, *args):
Expand Down Expand Up @@ -61,6 +64,9 @@ def fetch(self):
except CloudInfoException as exc:
if not self.opts.ignore_share_errors:
raise exc
logger.warning(
"Ignored exception while getting share info for %s: %s", vo, exc
)

# XXX Avoid creating a new list
endpoints = {
Expand Down

0 comments on commit 413d1f1

Please sign in to comment.