fix assert for logging functions