fix log call

Fixing the broken log call. this also does remove the empty close dates. Thanks @remiolsen for the troubleshooting
hm, you're declaring a global LOG variable and then re-assigning it here (with a different handler actually). Is that intended?