mirror of
				https://github.com/TitanEmbeds/Titan.git
				synced 2025-11-03 23:37:09 +01:00 
			
		
		
		
	Set logging location in config
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							600627d2e2
						
					
				
				
					commit
					71b29cd75d
				
			@@ -9,6 +9,7 @@ import sys
 | 
			
		||||
import logging
 | 
			
		||||
import json
 | 
			
		||||
logging.basicConfig(filename='titanbot.log',level=logging.INFO,format='%(asctime)s %(message)s', datefmt='%m/%d/%Y %I:%M:%S %p')
 | 
			
		||||
handler = logging.FileHandler(config.get("logging-location", "titanbot.log"))
 | 
			
		||||
logging.getLogger('TitanBot')
 | 
			
		||||
logging.getLogger('sqlalchemy')
 | 
			
		||||
 | 
			
		||||
@@ -265,4 +266,4 @@ class Titan(discord.Client):
 | 
			
		||||
        for msg in self.messages:
 | 
			
		||||
            if msg.id == msg_id:
 | 
			
		||||
                return True
 | 
			
		||||
        return False
 | 
			
		||||
        return False
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user