fix log call

Fixing the broken log call. this also does remove the empty close dates. Thanks @remiolsen for the troubleshooting