Extra logging under debug mode