Improved message logging, exceptions only printed in debug level