Skip to content

Commit 4ffa795

Browse files
Jammy2211claude
authored andcommitted
fix: stop creating root.log on autoarray import
Remove the FileHandler with filename root.log from autoarray's packaged logging.yaml (and the test config mirror). It attached to the root logger unconditionally, dropping a root.log into cwd whenever a script imported autoarray from a directory whose own config/logging.yaml did not override this one (e.g. running from a repo root rather than a workspace dir). Console logging via StreamHandler is unchanged. Co-Authored-By: Claude Opus 4.7 <[email protected]>
1 parent 1b06b43 commit 4ffa795

2 files changed

Lines changed: 2 additions & 12 deletions

File tree

autoarray/config/logging.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,10 @@ handlers:
77
level: INFO
88
stream: ext://sys.stdout
99
formatter: formatter
10-
file:
11-
class: logging.FileHandler
12-
level: INFO
13-
filename: root.log
14-
formatter: formatter
1510

1611
root:
1712
level: INFO
18-
handlers: [ console, file ]
13+
handlers: [ console ]
1914

2015
formatters:
2116
formatter:

test_autoarray/config/logging.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,10 @@ handlers:
77
level: INFO
88
stream: ext://sys.stdout
99
formatter: formatter
10-
file:
11-
class: logging.FileHandler
12-
level: INFO
13-
filename: root.log
14-
formatter: formatter
1510

1611
root:
1712
level: INFO
18-
handlers: [ console, file ]
13+
handlers: [ console ]
1914

2015
formatters:
2116
formatter:

0 commit comments

Comments
 (0)