Fix log

Related to #19.
(cherry picked from commit 89c29c4)