diff --git a/docs/CONTRIBUTING.md b/docs/CONTRIBUTING.md index 2700ab980..37b0d4bb9 100644 --- a/docs/CONTRIBUTING.md +++ b/docs/CONTRIBUTING.md @@ -175,7 +175,7 @@ This repo uses the [semantic-prs](https://github.com/Ezard/semantic-prs) GitHub Pull requests should be named according to the conventional commit syntax to streamline changelog and release notes management. We encourage (but do not require) the use of conventional commits in commit messages as well. -In general, PR titles should follow the format ": ", where type is any one of these: +In general, PR titles should follow the format `: `, where type is any one of these: - `ci` - `chore` diff --git a/singer_sdk/plugin_base.py b/singer_sdk/plugin_base.py index feb0f0db3..1a3b09877 100644 --- a/singer_sdk/plugin_base.py +++ b/singer_sdk/plugin_base.py @@ -63,7 +63,8 @@ def logger(cls) -> logging.Logger: Plugin logger. """ # Get the level from _LOGLEVEL or LOGLEVEL environment variables - LOGLEVEL = os.environ.get(f"{cls.name.upper()}_LOGLEVEL") or os.environ.get( + plugin_env_prefix = f"{cls.name.upper().replace('-', '_')}_" + LOGLEVEL = os.environ.get(f"{plugin_env_prefix}LOGLEVEL") or os.environ.get( "LOGLEVEL" )