mirror of
				https://github.com/avatao-content/baseimage-tutorial-framework
				synced 2025-11-04 06:22:55 +00:00 
			
		
		
		
	Fix logging bug
This commit is contained in:
		@@ -109,10 +109,10 @@ class TFWLogFormatter(Formatter):
 | 
			
		||||
    def trim(self, value):
 | 
			
		||||
        if isinstance(value, dict):
 | 
			
		||||
            return {k: self.trim(v) for k, v in value.items()}
 | 
			
		||||
        if isinstance(value, (int, float)):
 | 
			
		||||
            return value
 | 
			
		||||
        value_str = str(value)
 | 
			
		||||
        return value_str if len(value_str) <= self.limit else f'{value_str[:self.limit]}...'
 | 
			
		||||
        if isinstance(value, str):
 | 
			
		||||
            value_str = str(value)
 | 
			
		||||
            return value_str if len(value_str) <= self.limit else f'{value_str[:self.limit]}...'
 | 
			
		||||
        return value
 | 
			
		||||
 | 
			
		||||
    @staticmethod
 | 
			
		||||
    def fetch_exception_origin(trace):
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user