On Mon, 08 Nov 2021 11:47:27 +0100
shundhammer <[email protected]> wrote:

> 
> But this  is not the reason for that: We have different needs from logs 
> than an end user. We need more details (and I'd very much prefer proper 
> formatting, not just dumping 10k of garbage in one single line)

This is good idea and whats more now it is even good time for it. Previously we 
had to do it
manually for each log line as old testsuite compare logs (so all y2* calls to 
log use ycp data format), but now with old test suite dead/removed we can 
improve data formatting.
It used sformat on each data passed [1] as extra arguments to old data calls. 
So what we can do is to add to more modern logger method like data_dump and for 
old y2* logs calls use something similar.
Maybe something like `pp` can help there.

Josef

[1] 
https://github.com/yast/yast-ruby-bindings/blob/master/src/ruby/yast/logger.rb#L35

Reply via email to