mirror of
				https://github.com/open-metadata/OpenMetadata.git
				synced 2025-11-04 12:36:23 +00:00 
			
		
		
		
	MINOR: changed log level to debug (#17126)
* changed log level to debug * fixed type * changed type to optional
This commit is contained in:
		
							parent
							
								
									9be08d70e3
								
							
						
					
					
						commit
						b125ba7b48
					
				@ -46,7 +46,7 @@ class HexByteString(TypeDecorator):
 | 
				
			|||||||
                f"HexByteString columns support only bytes values. Received {type(value).__name__}."
 | 
					                f"HexByteString columns support only bytes values. Received {type(value).__name__}."
 | 
				
			||||||
            )
 | 
					            )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def process_result_value(self, value: str, dialect) -> Optional[str]:
 | 
					    def process_result_value(self, value: Optional[bytes], dialect) -> Optional[str]:
 | 
				
			||||||
        """This is executed during result retrieval
 | 
					        """This is executed during result retrieval
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        Args:
 | 
					        Args:
 | 
				
			||||||
@ -66,8 +66,8 @@ class HexByteString(TypeDecorator):
 | 
				
			|||||||
                value = bytes_value.decode(encoding=detected_encoding)
 | 
					                value = bytes_value.decode(encoding=detected_encoding)
 | 
				
			||||||
                return value
 | 
					                return value
 | 
				
			||||||
            except Exception as exc:
 | 
					            except Exception as exc:
 | 
				
			||||||
 | 
					                logger.debug("Failed to parse bytes valud as string: %s", exc)
 | 
				
			||||||
                logger.debug(traceback.format_exc())
 | 
					                logger.debug(traceback.format_exc())
 | 
				
			||||||
                logger.error(exc)
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return value.hex()
 | 
					        return value.hex()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user