mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-02 20:59:56 -05:00
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:
parent
376850ceeb
commit
7d6b7114a7
34 changed files with 416 additions and 357 deletions
|
|
@ -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/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue