Skip to content

Commit

Permalink
utilities: remove logging from prune_unused_args (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
kmantel authored Dec 7, 2023
1 parent 987abe8 commit cc925c5
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/graph_scheduler/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@ def prune_unused_args(func, args=None, kwargs=None):
args = [args]

if not has_args_param:
num_extra_args = len(args) - count_positional
if num_extra_args > 0:
logger.debug('{1} extra arguments specified to function {0}, will be ignored (values: {2})'.format(func, num_extra_args, args[-num_extra_args:]))
args = args[:count_positional]
else:
args = []
Expand All @@ -72,8 +69,6 @@ def prune_unused_args(func, args=None, kwargs=None):
for kw in kwargs:
if kw not in func_kwargs_names:
filtered.add(kw)
if len(filtered) > 0:
logger.debug('{1} extra keyword arguments specified to function {0}, will be ignored (values: {2})'.format(func, len(filtered), filtered))
for kw in filtered:
del kwargs[kw]
else:
Expand Down

0 comments on commit cc925c5

Please sign in to comment.