re-raise error for invalid callbacks, logging
fix logging syntax error