change some warn_log to debug_log