Skip to content

Commit e2bf321

Browse files
committed
fix(backend): ignore neo4j deprecation logs
Logs are emitted when running with neo4j >= 5.26. Query compatibility will be available with Infrahub 1.3, we can revert this once 1.3 is released. Signed-off-by: Fatih Acar <[email protected]>
1 parent 6a55b73 commit e2bf321

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

backend/infrahub/database/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,10 @@ async def get_db(retry: int = 0) -> AsyncDriver:
487487
auth=(config.SETTINGS.database.username, config.SETTINGS.database.password),
488488
encrypted=config.SETTINGS.database.tls_enabled,
489489
trusted_certificates=trusted_certificates,
490-
notifications_disabled_categories=[NotificationDisabledCategory.UNRECOGNIZED],
490+
notifications_disabled_categories=[
491+
NotificationDisabledCategory.UNRECOGNIZED,
492+
NotificationDisabledCategory.DEPRECATION, # TODO: Remove me with 1.3
493+
],
491494
notifications_min_severity=NotificationMinimumSeverity.WARNING,
492495
)
493496

0 commit comments

Comments
 (0)