Prettify debug output
- Add file name and line numbers, if available
- Use colored "Host" prefix instead of "From host"
After (release build, screwed up the text color in this screenshot)
After (debug build)
Tested in both Chrome and Firefox. Chrome does not show the
(i) prefix for
console.info but otherwise shows the message fine.
For compatibility with older extension versions, the action remains
warning, so those messages are never lost.