add logging of command to valgrind log