Skip to content

Commit

Permalink
cleaned up log output
Browse files Browse the repository at this point in the history
  • Loading branch information
donkevlar committed Jul 14, 2024
1 parent 69b7dc6 commit 804a52f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion Scripts/audio.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from interactions import *
from interactions.api.events import BaseVoiceEvent, VoiceUserLeave
from interactions.api.voice.audio import AudioVolume
import bookshelfAPI as c
import settings as s
Expand Down
6 changes: 3 additions & 3 deletions Scripts/bookshelfAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ def bookshelf_session_update(session_id: str, item_id: str, current_time: float,
print("Error, nextTime was not valid")

logger.info(
f"Duration: {duration}, Current Time: {serverCurrentTime}, Updated Time: {updatedTime}, Item ID: {session_itemID}") # NOQA
f"Duration: {duration}, Current Time: {serverCurrentTime}, Updated Time: {updatedTime}")

# Check if session matches the current item playing
if item_id == session_itemID and updatedTime <= duration:
Expand Down Expand Up @@ -624,11 +624,11 @@ def bookshelf_session_update(session_id: str, item_id: str, current_time: float,
print(f"Session sync failed, sync status: {sessionOK}")

except requests.RequestException as e:
logger.warning(f"Issue with sync post request: \n{e}")
logger.warning(f"Issue with sync post request: {e}")
print(e)

except Exception as e:
logger.warning(f"Issue with sync: \n{e}")
logger.warning(f"Issue with sync: {e}")


# Need to revisit this at some point
Expand Down

0 comments on commit 804a52f

Please sign in to comment.