implemented some logging to improve the condition
Merge pull request #69 from haf/bug/65-partial-logging

implemented some logging to improve the condition