Bugfix to use correct logging function.