added compile time switch to disable debug logging