diff options
| author | 2020-12-12 04:16:19 +0100 | |
|---|---|---|
| committer | 2020-12-15 05:02:52 +0100 | |
| commit | b3f9cc10b7fe50575fee74424ba26636007cbcdc (patch) | |
| tree | 51b3c5f7d714287a2ec3b3ac62b9dc0523b74c0d | |
| parent | Clear up grammar (diff) | |
Reuse form body to construct log message
Co-authored-by: MarkKoz <[email protected]>
| -rw-r--r-- | bot/exts/info/doc/_cog.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/bot/exts/info/doc/_cog.py b/bot/exts/info/doc/_cog.py index d828e6b4a..61f770c0a 100644 --- a/bot/exts/info/doc/_cog.py +++ b/bot/exts/info/doc/_cog.py @@ -407,9 +407,7 @@ class DocCog(commands.Cog): log.info( f"User @{ctx.author} ({ctx.author.id}) added a new documentation package:\n" - f"Package name: {package_name}\n" - f"Base url: {base_url}\n" - f"Inventory URL: {inventory_url}" + + "\n".join(f"{key}: {value}" for key, value in body.items()) ) if await self.update_single(package_name, base_url, inventory_url) is None: |