Hi,
with patches [1,2] merged recently into master branch, oVirt UI
(WebAdmin and UserPortal) now persists client-side log records
in browser's local storage [3] in addition to logging them via
console.log API [4]. This means that client-side logs are kept
in browser's storage between browser restarts, unless the user
manually clears the storage.
To inspect "localStorage" object in Firefox:
* Menu / Developer / Toggle Tools
* on Console tab, type "inspect(localStorage)"
Client-side logs now use application-specific key prefix, e.g.
"ENGINE_WebAdmin_MyKey" or "ENGINE_UserPortal_MyKey" to avoid
clashes. For backwards compatibility (any existing items with
un-prefixed keys), UI has a fallback to read the un-prefixed
key when the prefixed one is missing. (Newly persisted items
always use the key prefix.)
In addition to changes above, any uncaught errors that originate
from UI code are now properly caught and logged. This means that
you shouldn't see uncaught JavaScript errors in browser's error
console anymore.
Regards,
Vojtech
[1]
https://gerrit.ovirt.org/#/c/25444/
[2]
https://gerrit.ovirt.org/#/c/41404/
[3]
http://www.w3.org/TR/webstorage/#the-localstorage-attribute
[4]
https://developer.mozilla.org/en-US/docs/Web/API/Console/log