Put debug log inside #ifdef DEBUG