remove logger use outside of test

fixes the build