Avoid Javascript errors after PDF viewer panel is closed. Refactor logging functions.
Avoid Javascript errors after PDF viewer panel is closed. Refactor logging functions.

jondo/paperpile,jondo/paperpile,jondo/paperpile,pombredanne/paperpile,jondo/paperpile,pombredanne/paperpile,pombredanne/paperpile,pombredanne/paperpile,pombredanne/paperpile,jondo/paperpile