Fix improper use of log macros