fixed logs pretty_function