mirror of
				https://github.com/open-metadata/OpenMetadata.git
				synced 2025-11-04 04:29:13 +00:00 
			
		
		
		
	MINOR: log context when failing to yield table (#16977)
* chore: log context when failing to yield table * changed error to db/schema/table
This commit is contained in:
		
							parent
							
								
									3a9e0973fe
								
							
						
					
					
						commit
						0740b01624
					
				@ -567,7 +567,10 @@ class CommonDbSourceService(
 | 
				
			|||||||
                self.context.get_global().table_views.append(table_view)
 | 
					                self.context.get_global().table_views.append(table_view)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        except Exception as exc:
 | 
					        except Exception as exc:
 | 
				
			||||||
            error = f"Unexpected exception to yield table [{table_name}]: {exc}"
 | 
					            error = (
 | 
				
			||||||
 | 
					                f"Unexpected exception to yield table "
 | 
				
			||||||
 | 
					                f"(database=[{self.context.get().database}], schema=[{schema_name}], table=[{table_name}]): {exc}"
 | 
				
			||||||
 | 
					            )
 | 
				
			||||||
            yield Either(
 | 
					            yield Either(
 | 
				
			||||||
                left=StackTraceError(
 | 
					                left=StackTraceError(
 | 
				
			||||||
                    name=table_name, error=error, stackTrace=traceback.format_exc()
 | 
					                    name=table_name, error=error, stackTrace=traceback.format_exc()
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user