Log failed Preflight check at INFO level
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 42/100
Direzione di ricerca
Inizia individuando l’implementazione di Preflight e il log degli avvisi nel Python SDK. Esamina i test esistenti per i controlli Preflight non riusciti, quindi verifica che venga ancora restituita una risposta 409, mentre la voce di log corrispondente utilizzi INFO invece di WARNING.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Is your feature request related to a problem? Please describe.
I don't think the preflight check, which throws a 409 when a file exists, should be logging a WARNING in the logs.
Describe the solution you'd like
I think Preflight in particular should log with INFO level. Although I can understand the decision for Preflight to throw a 409, in this case I am calling it specifically to ask "can I overwrite this file?" So the response, whatever it is, shouldn't be a WARNING for my application.
Put another way: If the Preflight just throws a 409 and logs a warning, I don't see how that is different to simply calling folder.upload() and letting it throw the exception. Aren't I just wasting an API call?
Describe alternatives you've considered
I really don't want to set the SDK log level to ERROR and above, but that is the only option I think?
- Lingua principale
- Python
- Stelle
- 460
- Fork
- 223
- Merge medio
- 14h 18m
- PR unite (30g)
- 21
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di box/box-python-sdk
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
box/box-python-sdk#196 ·
-
bug enhancement
box/box-python-sdk#1314 · 6 commenti · 5 assegnatari ·
-
enhancement
box/box-python-sdk#1154 · 3 commenti · 5 assegnatari ·
-
Asynchronous IO Support Apertaenhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
box/box-python-sdk#1155 · 1 commento · 4 reazioni ·
-
enhancement
box/box-python-sdk#1157 · 1 commento · 6 assegnatari ·
Tutte le issue di box/box-python-sdk
Issue simili
-
货币战争手改优先级配置缺少列表元素类型校验(P3) Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
syfoud/Simulated_Scepter#172 ·
-
A cancelled tests run makes the coverage comment workflow fail and reports it as a red check on main Apertaarea: ci bug perceived difficulty: 3
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Nitjsefnie-Harness-Commons/daedalus#921 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
EleutherAI/lm-evaluation-harness#4207 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
ClickHouse/clickhouse-connect#1057 ·