Skip to content

Commit

Permalink
[report] print plugname instead of plugin tuple
Browse files Browse the repository at this point in the history
Replace (count, plugname) by pure plugname in two debug logs - the int
is misleading rather than helping.

Resolves: #3778

Signed-off-by: Pavel Moravec <[email protected]>
  • Loading branch information
pmoravec authored and TurboTurtle committed Sep 12, 2024
1 parent a946343 commit 7009f22
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sos/report/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1372,13 +1372,14 @@ def collect_plugin(self, plugin):
self.pluglist.remove(plugin)
except ValueError:
self.soslog.debug(
f"Could not remove {plugin} from plugin list, ignoring..."
f"Could not remove {plugname} from plugin list, "
f"ignoring..."
)
try:
self.running_plugs.remove(plugname)
except ValueError:
self.soslog.debug(
f"Could not remove {plugin} from running plugin list, "
f"Could not remove {plugname} from running plugin list, "
f"ignoring..."
)
status = ''
Expand Down

0 comments on commit 7009f22

Please sign in to comment.