Martin Stangl

Results 19 comments of Martin Stangl

Not directly related to the issue, but two corrections to my workaround 1: 1. `__FILE__.split(__DIR__).pop()` works on Linux, but not on Windows, as __FILE__ always uses `/` as path separator,...

Time is also an issue for me, but I feel motivated to find some currently and give it a try.

I am no JS expert, but if I understand it right, it would force us to fix this issue, as there would be no way to access `me` from within...

After getting a little bit of sleep, I think I want to make the compatibility functionality, which was the last thing I added in, the default behavior. This means getting...

I completed the changes: - It is now possible to log an Error object or a string: `log.error("Test")` and `log.error(Error("Test"))` produce the same result. - Parameterized notifications fixed. I basically...

Another remark: One thing utils.js does right now is to override console.log and the other console.* logging functions. I did not move this to log.js, as I am not sure...

> Just got this from your library: > `2019-10-22 20:18:44.503 [ERROR] [jsr223.javascript.schedules ] - [source /etc/openhab2/automation/lib/javascript/personal/log.js, line 121, function _getLogMessage] Cannot read property "split" from undefined` > > I expect...

> > Just got this from your library: > > `2019-10-22 20:18:44.503 [ERROR] [jsr223.javascript.schedules ] - [source /etc/openhab2/automation/lib/javascript/personal/log.js, line 121, function _getLogMessage] Cannot read property "split" from undefined` > >...

I agree to the UX issue. I myself noticed that it sometime is difficult to quickly see the actual message as there so much stuff is going on before it....

> The only other one is the whole notification functionality. I'm undecided about that. I do think that it's useful to be able to notify of errors, however this seems...