Fixed an echo line to use the logging function