Fixed bug in logger

Fixed a bug in the logger which meant that standard logging (i.e.
logging with no prefixes or error codes) was incorrectly displayed