Logging security (#1943)

* update .gitignore

* Rename the confusing 'INFO' style to 'DETAIL'

* override str and repr

* feat: api_key desensitize

* feat: add SensitiveDataFilter in file handler

* tweak regex, add tests

* more tweaks, include other attrs

* add env vars, those with equivalent config

* fix tests

* tests are invaluable

---------

Co-authored-by: Shimada666 <649940882@qq.com>
This commit is contained in:
Engel Nyst
2024-05-22 18:27:38 +02:00
committed by GitHub
parent 8e3e51e984
commit 46352e890b
11 changed files with 292 additions and 8 deletions

2
.gitignore vendored
View File

@@ -126,6 +126,7 @@ env/
venv/
ENV/
env.bak/
.env.bak
venv.bak/
*venv/
@@ -202,6 +203,7 @@ cache
# configuration
config.toml
config.toml.bak
evaluation/swe_bench/eval_workspace
evaluation/outputs
evaluation/evaluation_outputs