Skip to content

Commit

Permalink
Merge pull request #26 from airflow-laminar/tkp/quiet
Browse files Browse the repository at this point in the history
quiet deactivated plugin error message to warning
  • Loading branch information
timkpaine authored Nov 7, 2024
2 parents 8021ac1 + 97f7a76 commit 77662c1
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!")
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.")
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.")
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.")
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.")
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 77662c1

Please sign in to comment.