fix env bug
use custom logger instead of root logger