Code cleanup

Replace Exception.printStackTrace calls with loggers.

Signed-off-by: Clement Escoffier <clement.escoffier@gmail.com>