Skip to content

Commit 76b8ce9

Browse files
committed
Shorter line.
1 parent 2957287 commit 76b8ce9

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

datadog_lambda/config.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,11 @@ def _getter(self):
2121
try:
2222
val = cast(val)
2323
except (ValueError, TypeError):
24-
logger.warning(
25-
"Failed to cast environment variable '%s' with value '%s' to type %s. Using default value '%s'.",
26-
key,
27-
val,
28-
cast.__name__,
29-
default,
24+
msg = (
25+
"Failed to cast environment variable '%s' with "
26+
"value '%s' to type %s. Using default value '%s'."
3027
)
28+
logger.warning(msg, key, val, cast.__name__, default)
3129
val = default
3230
setattr(self, prop_key, val)
3331
return getattr(self, prop_key)

0 commit comments

Comments
 (0)