Fix docstring, naming, and log message as per @manishtomar