logging error. fixes #314