mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-07-27 11:20:07 +00:00
Remove default logger from ingestionpipeline (#4584)
* Remove default logger from ingestionpipeline * Format
This commit is contained in:
parent
76b9ee6ee7
commit
34b90de388
@ -28,8 +28,7 @@
|
|||||||
},
|
},
|
||||||
"loggerLevel": {
|
"loggerLevel": {
|
||||||
"description": "Set the logging level for the workflow.",
|
"description": "Set the logging level for the workflow.",
|
||||||
"$ref": "../../../metadataIngestion/workflow.json#/definitions/logLevels",
|
"$ref": "../../../metadataIngestion/workflow.json#/definitions/logLevels"
|
||||||
"default": "INFO"
|
|
||||||
},
|
},
|
||||||
"service": {
|
"service": {
|
||||||
"description": "Link to the database service where this database is hosted in.",
|
"description": "Link to the database service where this database is hosted in.",
|
||||||
|
@ -168,8 +168,7 @@
|
|||||||
},
|
},
|
||||||
"loggerLevel": {
|
"loggerLevel": {
|
||||||
"description": "Set the logging level for the workflow.",
|
"description": "Set the logging level for the workflow.",
|
||||||
"$ref": "../../../metadataIngestion/workflow.json#/definitions/logLevels",
|
"$ref": "../../../metadataIngestion/workflow.json#/definitions/logLevels"
|
||||||
"default": "INFO"
|
|
||||||
},
|
},
|
||||||
"deployed": {
|
"deployed": {
|
||||||
"description": "Indicates if the workflow has been successfully deployed to Airflow.",
|
"description": "Indicates if the workflow has been successfully deployed to Airflow.",
|
||||||
|
@ -35,6 +35,7 @@ from metadata.generated.schema.entity.services.ingestionPipelines.ingestionPipel
|
|||||||
IngestionPipeline,
|
IngestionPipeline,
|
||||||
)
|
)
|
||||||
from metadata.generated.schema.metadataIngestion.workflow import (
|
from metadata.generated.schema.metadataIngestion.workflow import (
|
||||||
|
LogLevels,
|
||||||
OpenMetadataWorkflowConfig,
|
OpenMetadataWorkflowConfig,
|
||||||
WorkflowConfig,
|
WorkflowConfig,
|
||||||
)
|
)
|
||||||
@ -103,7 +104,7 @@ def build_workflow_config_property(
|
|||||||
:return: WorkflowConfig
|
:return: WorkflowConfig
|
||||||
"""
|
"""
|
||||||
return WorkflowConfig(
|
return WorkflowConfig(
|
||||||
loggerLevel=ingestion_pipeline.loggerLevel,
|
loggerLevel=ingestion_pipeline.loggerLevel or LogLevels.INFO,
|
||||||
openMetadataServerConfig=ingestion_pipeline.openMetadataServerConnection,
|
openMetadataServerConfig=ingestion_pipeline.openMetadataServerConnection,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user