Update log.cpp