Logging instead of printing.