Commit 87bfaea
authored
Refactor and set http error to log an warning instead of error (#4953)
It does refact the update_task_enabled function, improving it's
readability and move to log warning instead of error for http errors.
This change aims to clean [this error
group](https://pantheon.corp.google.com/errors/detail/CNqTgJD4sZORdg;time=PT1H;locations=global?project=google.com:clusterfuzz&e=-13802955&mods=logs_tg_prod)
as the http error is expected for the cases where the metadata is not
set and we have a default behavior for this case.
Signed-off-by: Javan Lacerda <[email protected]>1 parent 11b877c commit 87bfaea
1 file changed
+12
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1207 | 1207 | | |
1208 | 1208 | | |
1209 | 1209 | | |
| 1210 | + | |
| 1211 | + | |
1210 | 1212 | | |
1211 | 1213 | | |
1212 | 1214 | | |
| |||
1218 | 1220 | | |
1219 | 1221 | | |
1220 | 1222 | | |
1221 | | - | |
| 1223 | + | |
1222 | 1224 | | |
1223 | 1225 | | |
1224 | 1226 | | |
1225 | 1227 | | |
1226 | | - | |
1227 | | - | |
1228 | | - | |
1229 | | - | |
1230 | | - | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
0 commit comments