Use logger instead of printing. Update error message.
Merge pull request #24 from lamblin/nouiz_mixed2

Use logger instead of printing. Update error message.