[fix] move log to correct place