Thanks, that made logging work on Pyjamas Desktop. In pyjs I get the
following error:
(in Chrome, website.safari.cache.html:27387)
Uncaught TypeError: Cannot read property '__track_lines__' of undefined
...
(in Firefox, website.mozilla.cache.html:19735)
$pyjs.loaded_modules[t.module] is undefined
...
if (typeof $pyjs.loaded_modules[t.module].__track_lines__ != 'undefined') {
Does this sound familiar to anyone?
Cheers, Peter
2012/3/14 lkcl luke <[email protected]>:
> diff --git a/library/pyjamas/logging/handlers.py
> b/library/pyjamas/logging/handl
> index d8d34b2..30aa2aa 100644
> --- a/library/pyjamas/logging/handlers.py
> +++ b/library/pyjamas/logging/handlers.py
> @@ -46,5 +46,5 @@ class ConsoleHandler(Handler):
> def emit(self, record):
> msg = self.format(record)
> msg = msg.replace("'", "\\'")
> - JS(""" console.log('%s') """ % msg)
> + JS(" console.log(@{{msg}}); ")
>
>
> something like that.