Skip to content

Commit 5ce0eff

Browse files
committed
add logging overriding
1 parent 477cda4 commit 5ce0eff

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

.github/labeler.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,7 @@ internal:
2121
- '!README.md'
2222
- '!src/**'
2323
- '!pyproject.toml'
24+
25+
#if branch starts with feature/ then apply this label
26+
feature:
27+
- head-branch: ['^feature', 'feature']

tests/test_cli.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ def test_dev_args() -> None:
111111
"--app",
112112
"api",
113113
"--no-proxy-headers",
114+
"--log-config",
115+
"log_config.yaml",
114116
],
115117
)
116118
assert result.exit_code == 0, result.output
@@ -125,7 +127,7 @@ def test_dev_args() -> None:
125127
"root_path": "/api",
126128
"proxy_headers": False,
127129
"forwarded_allow_ips": None,
128-
"log_config": get_uvicorn_log_config(),
130+
"log_config": "log_config.yaml",
129131
}
130132
assert "Using import string: single_file_app:api" in result.output
131133
assert "Starting development server 🚀" in result.output
@@ -311,7 +313,7 @@ def test_run_args() -> None:
311313
"root_path": "/api",
312314
"proxy_headers": False,
313315
"forwarded_allow_ips": None,
314-
"log_config": get_uvicorn_log_config(),
316+
"log_config": "log_config.yaml",
315317
}
316318

317319
assert "Using import string: single_file_app:api" in result.output

0 commit comments

Comments
 (0)