Fixed error with logging type and colour from caused by missing breaks

A quick fix so that WARN and ERR output the correct type and colour. I just added four break commands.