Fix compile error.
Log instead of print.