udpate src/slave.cpp logging