@@ -1,15 +0,0 @@
-[Unit]
-Description=MyAnimeList Discord Bot
-After=network.target nss-lookup.target
-
-[Service]
-Type=simple
-ExecStart=/usr/local/bin/python3.7 /opt/malbot/myanimebot.py
-ExecStop=/bin/kill -15 $MAINPID
-Restart=on-failure
-User=malbot
-Group=malbot
-[Install]
-WantedBy=multi-user.target
@@ -100,7 +100,6 @@ class LogDBHandler(logging.Handler):
# Make the SQL insert
try:
- print (str(self.log_msg))
self.sql_cursor.execute("INSERT INTO t_logs (host, level, type, log, date, source) VALUES (%s, %s, %s, %s, NOW(), %s)", (str(socket.gethostname()), str(record.levelno), str(record.levelname), self.log_msg, str(record.name)))
self.sql_conn.commit()
except Exception as e: