Skip to content
This repository was archived by the owner on Dec 16, 2022. It is now read-only.

Commit 9e3f405

Browse files
authored
Only log the keys in the "extras" dictionary when instantiating objects from_params (#2608)
1 parent 720d306 commit 9e3f405

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

allennlp/common/from_params.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ def from_params(cls: Type[T], params: Params, **extras) -> T:
254254
from allennlp.common.registrable import Registrable # import here to avoid circular imports
255255

256256
logger.info(f"instantiating class {cls} from params {getattr(params, 'params', params)} "
257-
f"and extras {extras}")
257+
f"and extras {set(extras.keys())}")
258258

259259
if params is None:
260260
return None

0 commit comments

Comments
 (0)