don't log if there is no log function