PuerkitoBio/gocrawl — pull request #6 by dmitrybond (2012-11-03 22:13:14+00:00)
Title: Removed newline from log messages.

I removed all newlines from log messages, but added Println to default logger instead of Print. Also added newline to spyExtender for tests to PASS.

I needed this because if I ever need to log somewhere instead of console, I get unnecessary newline everywhere.

Also, I don't add newlines to my log, so I tell my logger to 'add newline to every message'. So, when I use the extender Log func and redirect your log to my logger, I get two newlines in a row.

So, maybe it's better to leave newline logic optional and add it to default implementation of logger, but not to every log message itself?

What do you think about such change? I've implemented that already as this is an easy fix, so could you please look at this pull request?