Fix log error

This commit is contained in:
Nexus 2024-01-09 09:53:31 +00:00
parent 3714832752
commit d53e1a5867
2 changed files with 33 additions and 10 deletions

View file

@ -4,10 +4,7 @@
<option name="autoReloadType" value="SELECTIVE" /> <option name="autoReloadType" value="SELECTIVE" />
</component> </component>
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="aa6d62a8-d64d-4a60-a85f-8d9fa52b6b49" name="Changes" comment="Forgot to hexdigest"> <list default="true" id="aa6d62a8-d64d-4a60-a85f-8d9fa52b6b49" name="Changes" comment="Save the right message" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/cogs/ytdl.py" beforeDir="false" afterPath="$PROJECT_DIR$/src/cogs/ytdl.py" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" /> <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
@ -81,7 +78,7 @@
<workItem from="1704572901106" duration="125000" /> <workItem from="1704572901106" duration="125000" />
<workItem from="1704573038888" duration="7749000" /> <workItem from="1704573038888" duration="7749000" />
<workItem from="1704760229948" duration="946000" /> <workItem from="1704760229948" duration="946000" />
<workItem from="1704790508193" duration="2855000" /> <workItem from="1704790508193" duration="3156000" />
</task> </task>
<task id="LOCAL-00001" summary="Update gitignore"> <task id="LOCAL-00001" summary="Update gitignore">
<option name="closed" value="true" /> <option name="closed" value="true" />
@ -291,7 +288,31 @@
<option name="project" value="LOCAL" /> <option name="project" value="LOCAL" />
<updated>1704793320744</updated> <updated>1704793320744</updated>
</task> </task>
<option name="localTasksCounter" value="27" /> <task id="LOCAL-00027" summary="Add some debug to saved io">
<option name="closed" value="true" />
<created>1704793623042</created>
<option name="number" value="00027" />
<option name="presentableId" value="LOCAL-00027" />
<option name="project" value="LOCAL" />
<updated>1704793623042</updated>
</task>
<task id="LOCAL-00028" summary="Save link after downloading it">
<option name="closed" value="true" />
<created>1704793787143</created>
<option name="number" value="00028" />
<option name="presentableId" value="LOCAL-00028" />
<option name="project" value="LOCAL" />
<updated>1704793787143</updated>
</task>
<task id="LOCAL-00029" summary="Save the right message">
<option name="closed" value="true" />
<created>1704793881879</created>
<option name="number" value="00029" />
<option name="presentableId" value="LOCAL-00029" />
<option name="project" value="LOCAL" />
<updated>1704793881879</updated>
</task>
<option name="localTasksCounter" value="30" />
<servers /> <servers />
</component> </component>
<component name="TypeScriptGeneratedFilesManager"> <component name="TypeScriptGeneratedFilesManager">
@ -299,9 +320,6 @@
</component> </component>
<component name="VcsManagerConfiguration"> <component name="VcsManagerConfiguration">
<option name="ADD_EXTERNAL_FILES_SILENTLY" value="true" /> <option name="ADD_EXTERNAL_FILES_SILENTLY" value="true" />
<MESSAGE value="Beta 1&#10;&#10;* Screenshot (unpolished, functional)&#10;* Dig&#10;* Traceroute&#10;* Whois&#10;* Ping&#10;* yt-dl" />
<MESSAGE value="Beta 1&#10;&#10;* Screenshot (unpolished, functional)&#10;* Dig&#10;* Traceroute&#10;* Whois&#10;* Ping&#10;* yt-dl&#10;* Docker file" />
<MESSAGE value="Update the docker image" />
<MESSAGE value="Fix main.py not properly import conf.py" /> <MESSAGE value="Fix main.py not properly import conf.py" />
<MESSAGE value="Fix Dockerfile" /> <MESSAGE value="Fix Dockerfile" />
<MESSAGE value="Move to SRC dir, add log suppression, add ollama" /> <MESSAGE value="Move to SRC dir, add log suppression, add ollama" />
@ -324,6 +342,9 @@
<MESSAGE value="Fix aiosqlite again" /> <MESSAGE value="Fix aiosqlite again" />
<MESSAGE value="I hate SQL" /> <MESSAGE value="I hate SQL" />
<MESSAGE value="Forgot to hexdigest" /> <MESSAGE value="Forgot to hexdigest" />
<option name="LAST_COMMIT_MESSAGE" value="Forgot to hexdigest" /> <MESSAGE value="Add some debug to saved io" />
<MESSAGE value="Save link after downloading it" />
<MESSAGE value="Save the right message" />
<option name="LAST_COMMIT_MESSAGE" value="Save the right message" />
</component> </component>
</project> </project>

View file

@ -96,6 +96,8 @@ class YTDLCog(commands.Cog):
self.log.debug( self.log.debug(
"Saving %r (%r:%r) with message %d>%d, index %d", "Saving %r (%r:%r) with message %d>%d, index %d",
_hash, _hash,
webpage_url,
format_id,
message.channel.id, message.channel.id,
message.id, message.id,
attachment_index attachment_index