Skip to content

Commit

Permalink
Do not print INFO messages from Neo4j
Browse files Browse the repository at this point in the history
  • Loading branch information
m-appel committed Dec 6, 2024
1 parent 22cfea1 commit 78f60b5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions iyp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

import requests
from github import Github
from neo4j import GraphDatabase
from neo4j import GraphDatabase, NotificationMinimumSeverity

BATCH_SIZE = 50000

Expand Down Expand Up @@ -159,7 +159,9 @@ def __init__(self):

# Connect to the database
uri = f'neo4j://{self.server}:{self.port}'
self.db = GraphDatabase.driver(uri, auth=(self.login, self.password))
self.db = GraphDatabase.driver(uri,
auth=(self.login, self.password),
notifications_min_severity=NotificationMinimumSeverity.WARNING)

if self.db is None:
raise ConnectionError('Could not connect to the Neo4j database!')
Expand Down

0 comments on commit 78f60b5

Please sign in to comment.