add log, fix minor bug, update ignore
change all message to to g_log.