loomnetwork / loomchain

Loom DAppChain Engine
Other
166 stars 32 forks source link

logs inside go smart contracts are swallowing newlines #480

Open mattkanwisher opened 5 years ago

mattkanwisher commented 5 years ago

Code:


    fmt.Print("one\ntwo\nthree\n")```
Output:
```ts=2018-11-29T09:22:27.6609211Z module=loom level=info _msg="one\ntwo\nthree\n"
one
two
three```
ZimM-LostPolygon commented 5 years ago

Correction, output is

ts=2018-11-29T09:22:27.6609211Z module=loom level=info _msg="one\ntwo\nthree\n"
one
two
three