Use a logging statement instead of a print
Fix logging