Skip to content

Commit

Permalink
Use djan in Flor.msg_to_detail_s(executor, msg)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmettraux committed Oct 19, 2023
1 parent d831fc5 commit 9bd5eed
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

## flor 1.6.1 not yet released

* accept --djan to flotojson.rb
* Use djan in Flor.msg_to_detail_s(executor, message)
* Accept --djan to flotojson.rb


## flor 1.6.0 released 2023-01-13
Expand Down
9 changes: 7 additions & 2 deletions lib/flor/log.rb
Original file line number Diff line number Diff line change
Expand Up @@ -337,13 +337,18 @@ def msg_to_detail_s(executor, m, opts={})
o.puts "#{_c.rs}#{_c.dg}<Flor.msg_to_detail_s>"

o.puts "#{_c.dg}message:#{_c.yl}"
o.puts YAML.dump(m)
#o.puts YAML.dump(m)
o.puts(Flor.to_djan(m, indent: 2, width: true))

o.puts "#{_c.dg}tree:#{_c.yl}"
o.puts(tree_to_s(node.lookup_tree(nid), nid, out: o)) if node

o.puts "#{_c.dg}node:#{_c.yl}"
o.puts n ? YAML.dump(n.merge('tree' => '(above)')) : 'nil'
#o.puts n ? YAML.dump(n.merge('tree' => '(above)')) : 'nil'
o.puts(
n ?
Flor.to_djan(n.merge('tree' => '(above)'), indent: 2, width: true) :
'nil')

o.puts "#{_c.dg}nodes:#{_c.yl}"
o.puts nods_to_s(executor, m, opts)
Expand Down

0 comments on commit 9bd5eed

Please sign in to comment.