[yast-devel] Nicer logging lines for ruby code
Hi, after our final drop of old testsuite nothing prevent to merge [1]. So now we will have in y2log also method names, so I hope easier grepping. Example how it changed: - 2018-05-28 13:10:29 <1> linux-vvcf.privatesite(12728) [Ruby] y2storage/dump_manager.rb:230 Devicegraph dump directory: /var/log/YaST2/storage - 2018-05-28 13:10:29 <1> linux-vvcf.privatesite(12728) [Ruby] y2storage/dump_manager.rb:264 Dumping Devicegraph to 01-probed + 2018-05-28 13:25:35 <1> linux-vvcf.privatesite(20263) [Ruby] y2storage/dump_manager.rb(lazy_init):230 Devicegraph dump directory: /var/log/YaST2/storage + 2018-05-28 13:25:35 <1> linux-vvcf.privatesite(20263) [Ruby] y2storage/dump_manager.rb(dump_internal):264 Dumping Devicegraph to 01-probed Of course we are not necessary limited to that change and we can change more as we need, so I welcome any feedback. One idea I have is to replace that "Ruby" component by real components e.g. by matching component and gettext domain. so in this case it can be "storage". Josef [1] https://github.com/yast/yast-ruby-bindings/pull/216 -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org To contact the owner, e-mail: yast-devel+owner@opensuse.org
participants (1)
-
josef Reidinger