Adding TRACE level for logging beyond debug. Reworking async_client for tests, not all tests need the App to handle signals, so any test that needs signals can use the new await_switches fixture which primes the app.

This commit is contained in:
Roland 2024-12-11 11:52:33 -07:00
parent 376850ceeb
commit 7d6b7114a7
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
34 changed files with 416 additions and 357 deletions

View file

@ -136,7 +136,7 @@ export function RestartButton() {
}
const levelNameMap = {
5: 'All',
5: 'Trace',
4: 'Debug',
3: 'Info',
2: 'Warning',
@ -155,14 +155,14 @@ function fromApiLogLevel(logLevel) {
30: 2,
20: 3,
10: 4,
0: 5,
5: 5,
}[logLevel]
}
function toApiLogLevel(logLevel) {
// Reverse the above levels.
return {
5: 0,
5: 5,
4: 10,
3: 20,
2: 30,
@ -380,7 +380,7 @@ export function SettingsPage() {
<option value='2'>Warning</option>
<option value='3'>Info</option>
<option value='4'>Debug</option>
<option value='5'>All</option>
<option value='5'>Trace</option>
</datalist>
<br/>