Commit 64e5a05
committed
docs: clarify HttpLogLevel.fromEnv layering and use enum-driven lookup
The fromEnv KDoc described env-only resolution, but the value is read
through Configuration.get, which layers override -> env var -> normalized
system property -> default. Note this so callers aren't surprised when a
system property supplies the value.
Replace the hardcoded when over level-name string literals with a lookup
over HttpLogLevel.entries so a newly added enum constant resolves without
a matching branch edit. Add a test pinning that a whitespace-only value
falls back to the supplied default.1 parent 7914a83 commit 64e5a05
2 files changed
Lines changed: 21 additions & 8 deletions
File tree
- sdk-core/src
- main/kotlin/org/dexpace/sdk/core/http/pipeline/steps
- test/kotlin/org/dexpace/sdk/core/http/pipeline/steps
Lines changed: 10 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
42 | 48 | | |
43 | 49 | | |
44 | 50 | | |
| |||
61 | 67 | | |
62 | 68 | | |
63 | 69 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
| 70 | + | |
| 71 | + | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
80 | 91 | | |
81 | 92 | | |
82 | 93 | | |
| |||
0 commit comments