diff --git a/CHANGELOG.md b/CHANGELOG.md index 22a42e54..5c126321 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -165,6 +165,8 @@ See also https://github.com/neo4j/neo4j-python-driver/wiki for a full changelog. - `neo4j.graph.Node`, `neo4j.graph.Relationship`, `neo4j.graph.Path` - `neo4j.time.Date`, `neo4j.time.Time`, `neo4j.time.DateTime` - `neo4j.spatial.Point` (and subclasses) +- Separate out log entries that are session-related (including transaction retries) + form sub-logger `neo4j.pool` to a new sub-logger `neo4j.session`. ## Version 5.28 diff --git a/src/neo4j/_async/work/session.py b/src/neo4j/_async/work/session.py index bd0db02c..dbe64b74 100644 --- a/src/neo4j/_async/work/session.py +++ b/src/neo4j/_async/work/session.py @@ -57,7 +57,7 @@ _P = t.ParamSpec("_P") -log = getLogger("neo4j.pool") +log = getLogger("neo4j.session") class AsyncSession(AsyncWorkspace): diff --git a/src/neo4j/_sync/work/session.py b/src/neo4j/_sync/work/session.py index 768e1613..1db33478 100644 --- a/src/neo4j/_sync/work/session.py +++ b/src/neo4j/_sync/work/session.py @@ -57,7 +57,7 @@ _P = t.ParamSpec("_P") -log = getLogger("neo4j.pool") +log = getLogger("neo4j.session") class Session(Workspace):