Fix conflicting logging directory
This commit is contained in:
@@ -27,7 +27,7 @@ AVATAR = "https://i.redd.it/0uajctrps9u41.jpg"
|
|||||||
# Logger
|
# Logger
|
||||||
logger = logging.getLogger("discord")
|
logger = logging.getLogger("discord")
|
||||||
logger.setLevel(logging.INFO)
|
logger.setLevel(logging.INFO)
|
||||||
handler = logging.FileHandler(filename="logs/discord.log", encoding="utf-8", mode="w")
|
handler = logging.FileHandler(filename="/logs/discord.log", encoding="utf-8", mode="w")
|
||||||
handler.setFormatter(logging.Formatter("%(asctime)s:%(levelname)s:%(name)s: %(message)s"))
|
handler.setFormatter(logging.Formatter("%(asctime)s:%(levelname)s:%(name)s: %(message)s"))
|
||||||
logger.addHandler(handler)
|
logger.addHandler(handler)
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- ./data:/data
|
- ./logs:/logs
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
data:
|
logs:
|
||||||
Reference in New Issue
Block a user