Commit 61f391f
[v4] suppress console.error while creating InferenceSession (#1468)
* suppress console.error while creating InferenceSession
* changed console suppress if not one of the misleading errors
* set default logSeverityLevel and also match the ONNX_WEB.env.logLevel
* indentation
* small fix
* some clean-up
* Apply suggestions from code review
Co-authored-by: Joshua Lochner <admin@xenova.com>
* added LOG_LEVELS to the top of the file
---------
Co-authored-by: Joshua Lochner <admin@xenova.com>1 parent cb6c8b1 commit 61f391f
2 files changed
+18
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
49 | 52 | | |
50 | 53 | | |
51 | 54 | | |
| |||
149 | 152 | | |
150 | 153 | | |
151 | 154 | | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
152 | 168 | | |
153 | 169 | | |
154 | 170 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
| 244 | + | |
| 245 | + | |
244 | 246 | | |
245 | 247 | | |
246 | 248 | | |
| |||
0 commit comments