Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(FIR-42325): Default httpx logging level to Warn #46

Merged
merged 2 commits into from
Jan 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions firebolt_provider/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,11 @@ def get_provider_info() -> Dict[str, Any]:
"name": "Firebolt Provider",
"description": "A Firebolt provider for Apache Airflow.",
"hook-class-names": ["firebolt_provider.hooks.firebolt.FireboltHook"],
"connection-types": [
{
"connection-type": "firebolt",
"hook-class-name": "firebolt_provider.hooks.firebolt.FireboltHook",
}
],
"extra-links": ["firebolt_provider.operators.firebolt.RegistryLink"],
}
5 changes: 5 additions & 0 deletions firebolt_provider/hooks/firebolt.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
# under the License.
#

import logging
from collections import namedtuple
from typing import Any, Dict, List, Optional, Tuple, Union

Expand All @@ -40,6 +41,10 @@
# Airflow 2.0 path for the base class
from airflow.hooks.dbapi import DbApiHook

# Reduce noise from httpx logger
httpx_logger = logging.getLogger("httpx")
httpx_logger.setLevel(logging.WARNING)


class FireboltHook(DbApiHook):
"""
Expand Down
Loading