add log file ignore
debug mode on
code refactor