Commit 655d2fe
committed
feat: add error level mapping support for upstream sync
- Add level parameter to error messages (defaults to 'error')
- Add _get_level() helper function
- Freightcom API v2 does not provide level field, so defaults to 'error'
- Required for upstream sync with karrio-community (commit 1a1b158)1 parent cc94416 commit 655d2fe
2 files changed
Lines changed: 12 additions & 1 deletion
File tree
- plugins/freightcom_rest
- karrio/providers/freightcom_rest
- tests/freightcom_rest
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
449 | 449 | | |
450 | 450 | | |
451 | 451 | | |
452 | | - | |
| 452 | + | |
| 453 | + | |
453 | 454 | | |
454 | 455 | | |
455 | 456 | | |
| |||
0 commit comments