modify log.cpp