osm2pgsql outputs tons of ^M symbols into logs. We apparently can handle them with this:
http://stackoverflow.com/questions/16319179/realtime-removal-of-carriage-return-in-shell
this didn't work:
cat logfile | gawk '1;{fflush()}' RS='\r\n' > log.txt