Jelajahi Sumber

removing debuging print

Penta 5 tahun lalu
induk
melakukan
ed113a5c5c
2 mengubah file dengan 0 tambahan dan 16 penghapusan
  1. 0 15
      malbot.service
  2. 0 1
      myanimebot.py

+ 0 - 15
malbot.service

@@ -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

+ 0 - 1
myanimebot.py

@@ -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: