Skip to content

Commit

Permalink
Formatted logs.
Browse files Browse the repository at this point in the history
  • Loading branch information
detectivekaktus committed Jun 28, 2024
1 parent 0c77a64 commit 502cfb0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ async def __update_cache(self) -> None:
for item in range(0, len(items), len(CITIES)):
self.__cache[server - 1][name] = items[item:item + len(CITIES)]

LOGGER.info(f"Finished caching. Took: {perf_counter() - start} seconds.")
LOGGER.info(f"Finished caching. Took: {round(perf_counter() - start, 2)} seconds.")


async def get(self, item_name: str, server: int, quality: int = 1) -> Optional[list[dict[str, Any]]]:
Expand Down
3 changes: 1 addition & 2 deletions src/client.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env python3
from asyncio import create_task
from datetime import datetime
from os import listdir
from typing import Final
from discord import Activity, ActivityType, Guild, Intents, Status
Expand Down Expand Up @@ -38,7 +37,7 @@ async def on_ready() -> None:
LOGGER.info("Successfully loaded modules from src.commands.")

synched = await bot.tree.sync()
LOGGER.info(f"Successfully syncronized {synched} commands globally.")
LOGGER.info(f"Successfully syncronized {len(synched)} commands globally.")

create_task(MANAGER.lifecycle())
LOGGER.info("Created lifecycle loop for MANAGER to store cache.")
Expand Down

0 comments on commit 502cfb0

Please sign in to comment.