Fixes typo

Logging branch merged in wrong function name, leading to a bug.