Uploaded image for project: 'Grouper'
  1. Grouper
  2. GRP-3853

add method to increment a debug log entry

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • 2.6.8
    • None
    • None
    • None

    Description

          /**
         * add a value to a log entry
         * @param debugMap
         * @param key
         * @param incrementBy any number
         */
        public static void debugMapIncrementLogEntry(Map<String, Object> debugMap, String key, Object incrementBy) {
          long incrementByLong = GrouperClientUtils.longValue(incrementBy, 0);
          
          Long currentValue = GrouperClientUtils.longObjectValue(debugMap.get(key), true);
          if (currentValue == null) {
            currentValue = 0L;
          }
          currentValue += incrementByLong;
          debugMap.put(key, currentValue);
        }
        

      Attachments

        Activity

          People

            chris.hyzer@at.internet2.edu Chris Hyzer (upenn.edu)
            chris.hyzer@at.internet2.edu Chris Hyzer (upenn.edu)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: