Fixed the missed logging function.