Fixed the log output

…so that it doesn't spam the output stream