typo in logging code