Skip to content

Commit

Permalink
Merge pull request #14 from decodingml/feat/webinar
Browse files Browse the repository at this point in the history
fix: Replace logs
  • Loading branch information
iusztinpaul authored May 3, 2024
2 parents 77a8273 + bc24c28 commit d3d2c71
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions course/module-3/data_flow/stream_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def __init__(self, connection: QdrantDatabaseConnector, sink_type: str):
try:
self._connection.get_collection(collection_name="cleaned_posts")
except UnexpectedResponse:
logger.exception(
logger.info(
"Couldn't access the collection. Creating a new one...",
collection_name="cleaned_posts",
)
Expand All @@ -33,7 +33,7 @@ def __init__(self, connection: QdrantDatabaseConnector, sink_type: str):
try:
self._connection.get_collection(collection_name="cleaned_articles")
except UnexpectedResponse:
logger.exception(
logger.info(
"Couldn't access the collection. Creating a new one...",
collection_name="cleaned_articles",
)
Expand All @@ -45,7 +45,7 @@ def __init__(self, connection: QdrantDatabaseConnector, sink_type: str):
try:
self._connection.get_collection(collection_name="cleaned_repositories")
except UnexpectedResponse:
logger.exception(
logger.info(
"Couldn't access the collection. Creating a new one...",
collection_name="cleaned_repositories",
)
Expand All @@ -57,7 +57,7 @@ def __init__(self, connection: QdrantDatabaseConnector, sink_type: str):
try:
self._connection.get_collection(collection_name="vector_posts")
except UnexpectedResponse:
logger.exception(
logger.info(
"Couldn't access the collection. Creating a new one...",
collection_name="vector_posts",
)
Expand All @@ -67,7 +67,7 @@ def __init__(self, connection: QdrantDatabaseConnector, sink_type: str):
try:
self._connection.get_collection(collection_name="vector_articles")
except UnexpectedResponse:
logger.exception(
logger.info(
"Couldn't access the collection. Creating a new one...",
collection_name="vector_articles",
)
Expand All @@ -77,7 +77,7 @@ def __init__(self, connection: QdrantDatabaseConnector, sink_type: str):
try:
self._connection.get_collection(collection_name="vector_repositories")
except UnexpectedResponse:
logger.exception(
logger.info(
"Couldn't access the collection. Creating a new one...",
collection_name="vector_repositories",
)
Expand Down

0 comments on commit d3d2c71

Please sign in to comment.