change coilor code and log level
Merge branch 'refactor' into refactor_review