wepay / waltz

Waltz is a quorum-based distributed write-ahead log for replicating transactions
https://wepay.github.io/waltz/
Apache License 2.0
411 stars 35 forks source link

Cli StringBuilder output fix #148

Closed hrdlotom closed 3 years ago

hrdlotom commented 3 years ago

Made SB of Cli calls non static, added SB.setLength(0) where missing - already been in ClusterCli

This fixes the undesired behavior of seeing old Cli messages during current Cli execution. Because of a logger drop rate this results in uninterpretable logs which are a mix of everything. What happens: SB appends new messages to old messages that are kept in SB object and prints all of them.