Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-1105

Log at debug level rather that warn in ItemStateMap

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Won't Fix
    • 1.3.1
    • None
    • jackrabbit-core
    • None

    Description

      Please change org.apache.jackrabbit.core.state.ItemStateMap#put to log at DEBUG level rather that WARN.

      15:48:42,751 [main] WARN ItemStateMap : overwriting map entry 710c8476-e12d-9fcb-4556-0e02a7240bbf

      (Such warnings don't mean anything to people analyzing application logs.)

      — jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/ItemStateMap.java (revision 571983)
      +++ jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/ItemStateMap.java (working copy)
      @@ -79,7 +79,7 @@
      public void put(ItemState state) {
      ItemId id = state.getId();
      if (map.containsKey(id))

      { - log.warn("overwriting map entry " + id); + log.debug("overwriting map entry " + id); }

      map.put(id, state);
      }

      Attachments

        Activity

          People

            Unassigned Unassigned
            fguillaume Florent Guillaume
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: