this method will not work properly in multithread area, because use call 
dump()
and only after that stop

this mean that you still write messages to vectors trades_ and quotes_ while you printing it