Skip to content

Commit

Permalink
quiet deactivated plugin error message to warning
Browse files Browse the repository at this point in the history
  • Loading branch information
timkpaine committed Nov 7, 2024
1 parent 8021ac1 commit 97f7a76
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion airflow_priority/plugins/aws.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,4 @@ class AWSCloudWatchPriorityPlugin(AirflowPlugin):
get_config_option("aws", "region")
AWSCloudWatchPriorityPlugin.listeners.append(sys.modules[__name__])
except (ImportError, AirflowPriorityConfigurationOptionNotFound):
_log.exception("Plugin could not be enabled")
_log.warning("aws cloudwatch plugin could not be enabled!")

Check warning on line 84 in airflow_priority/plugins/aws.py

View check run for this annotation

Codecov / codecov/patch

airflow_priority/plugins/aws.py#L84

Added line #L84 was not covered by tests
2 changes: 1 addition & 1 deletion airflow_priority/plugins/datadog.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,4 @@ class DatadogPriorityPlugin(AirflowPlugin):
get_config_option("datadog", "api_key")
DatadogPriorityPlugin.listeners.append(sys.modules[__name__])
except (ImportError, AirflowPriorityConfigurationOptionNotFound):
_log.exception("Plugin could not be enabled")
_log.warning("datadog plugin could not be enabled! Ensure `datadog-api-client` is installed and all configuration options are set.")

Check warning on line 104 in airflow_priority/plugins/datadog.py

View check run for this annotation

Codecov / codecov/patch

airflow_priority/plugins/datadog.py#L104

Added line #L104 was not covered by tests
2 changes: 1 addition & 1 deletion airflow_priority/plugins/discord.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@ class DiscordPriorityPlugin(AirflowPlugin):

DiscordPriorityPlugin.listeners.append(sys.modules[__name__])
except (ImportError, AirflowPriorityConfigurationOptionNotFound):
_log.exception("Plugin could not be enabled")
_log.warning("discord plugin could not be enabled! Ensure `discord.py` is installed and all configuration options are set.")

Check warning on line 85 in airflow_priority/plugins/discord.py

View check run for this annotation

Codecov / codecov/patch

airflow_priority/plugins/discord.py#L85

Added line #L85 was not covered by tests
2 changes: 1 addition & 1 deletion airflow_priority/plugins/newrelic.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@ class NewRelicPriorityPlugin(AirflowPlugin):
get_config_option("newrelic", "api_key")
NewRelicPriorityPlugin.listeners.append(sys.modules[__name__])
except (ImportError, AirflowPriorityConfigurationOptionNotFound):
_log.exception("Plugin could not be enabled")
_log.warning("newrelic plugin could not be enabled! Ensure `newrelic-telemetry-sdk` is installed and all configuration options are set.")

Check warning on line 73 in airflow_priority/plugins/newrelic.py

View check run for this annotation

Codecov / codecov/patch

airflow_priority/plugins/newrelic.py#L73

Added line #L73 was not covered by tests
2 changes: 1 addition & 1 deletion airflow_priority/plugins/slack.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ class SlackPriorityPlugin(AirflowPlugin):
get_config_option("slack", "channel")
SlackPriorityPlugin.listeners.append(sys.modules[__name__])
except (ImportError, AirflowPriorityConfigurationOptionNotFound):
_log.exception("Plugin could not be enabled")
_log.warning("slack plugin could not be enabled! Ensure `slack-sdk` is installed and all configuration options are set.")

Check warning on line 75 in airflow_priority/plugins/slack.py

View check run for this annotation

Codecov / codecov/patch

airflow_priority/plugins/slack.py#L75

Added line #L75 was not covered by tests
2 changes: 1 addition & 1 deletion airflow_priority/plugins/symphony.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,4 @@ class SymphonyPriorityPlugin(AirflowPlugin):
get_config_options()
SymphonyPriorityPlugin.listeners.append(sys.modules[__name__])
except (ImportError, AirflowPriorityConfigurationOptionNotFound):
_log.exception("Plugin could not be enabled")
_log.warning("symphony plugin could not be enabled! Ensure `httpx` is installed and all configuration options are set.")

0 comments on commit 97f7a76

Please # to comment.