another logging implementation failure and a missing import

My bad, I should have waited before making the previous pull request and make only one for both commit.

This commit fixes two error I saw poped in the logs while going though some of paperwork features.