fix log output
replace throw values only in build mode, and output replacement map for all packages