use if (log.isDebugEnabled())  ??