8000 Reduce verbosity of logging · localstack/localstack@40bb7fe · GitHub
[go: up one dir, main page]

Skip to content

Commit 40bb7fe

Browse files
committed
Reduce verbosity of logging
1 parent 78db4cc commit 40bb7fe

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

localstack/services/cloudformation/resource_provider.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -796,13 +796,13 @@ def load_resource_provider(self, resource_type: str) -> ResourceProvider:
796796
try:
797797
plugin = pro_plugin_manager.load(resource_type)
798798
return plugin.factory()
799+
except ValueError:
800+
# could not load the plugin
801+
pass
799802
except Exception:
800-
LOG.debug(
801-
(
802-
"Failed to load resource type %s from pro as a ResourceProvider. "
803-
"Maybe this resource is implemented in community."
804-
),
805-
resource_type,
803+
LOG.warning(
804+
"error loading plugin from plugin manager",
805+
exc_info=LOG.isEnabledFor(logging.DEBUG),
806806
)
807807

808808
try:

0 commit comments

Comments
 (0)
0