configure(): an explicit logLevel equal to arLogLevel does not sync a divergent webarkitLogLevel
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 38/100
Direzione di ricerca
Read ARToolKitNFTCore::configure(), getRuntimeSettings(), and WebARKitManager::setLogLevel() to understand how the two log-level globals are updated. Check the existing tests for runtime settings and configuration behavior. First resolve which of the listed options should define the API contract; done means the header documents that behavior and a test covers divergent globals with an explicit level.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem
Since the review fixes in #106, ARToolKitNFTCore::configure() writes the log level only when settings.logLevel != -1 and the value differs from the current arLogLevel. That was done so a configure(getRuntimeSettings()) round trip does not overwrite a webarkitLogLevel set separately through WebARKitManager::setLogLevel().
The cost is that an explicit request can be partly ignored. Take arLogLevel = INFO and webarkitLogLevel = WARN, the second set by WebARKitManager. An explicit configure() with logLevel = INFO writes nothing, because INFO equals arLogLevel. WebARKit keeps logging at WARN, and configure() still returns success.
Impact
Low, and none in jsartoolkitNFT: its adapters always set both globals together, so they never diverge. It matters only to a native consumer that mixes WebARKitManager::setLogLevel() with configure().
Options
The two goals pull against each other: honour an explicit request, and keep a round trip from touching anything.
- Write each global that differs whenever
logLevel != -1. A round trip would then syncwebarkitLogLeveltoarLogLevel. Document that behaviour. - Make
getRuntimeSettings()report-1when the two globals differ. A round trip then changes nothing, and an explicit level is applied to both globals. - Keep the current behaviour and state the limitation in the
configure()header doc.
Whichever is chosen: update the header documentation, and add a test with divergent globals and an explicit level.
Found in the Qodo review of #109 (release 0.12.0). Related to the review fixes in #106.
- Lingua principale
- C++
- Stelle
- 21
- Fork
- 8
- Merge medio
- 7h 20m
- PR unite (30g)
- 26
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi 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 webarkit/WebARKitLib
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
webarkit/WebARKitLib#114 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 93/100
webarkit/WebARKitLib#107 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
webarkit/WebARKitLib#113 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
webarkit/WebARKitLib#110 ·
I maintainer di solito rispondono entro 1 giorno
-
Sync workflow: handle a conflicting sync branch with no open PR, and PRs the workflow did not openApertaCI enhancement
Difficoltà 3/5 Mezza giornata Idoneità per principianti 45/100
webarkit/WebARKitLib#92 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di webarkit/WebARKitLib
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
llvm/offload-test-suite#1703 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
BGI-shenzhen/PopLDdecay#25 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 68/100
eic/TimeframeBuilder#102 ·