Uploaded image for project: 'OpenAM Agents'
  1. OpenAM Agents
  2. AMAGENTS-214

agent.log is set to debug level and it is not possible to change it

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.1.0
    • Fix Version/s: 5.0.0.0, 4.1.0
    • Component/s: Web Agents
    • Environment:
      OpenAM Web Agent for Apache Server 2.4.x
       Version: 4.1.0-RC1
       Revision: 23aad85
       Build machine: delacroix
       Build date: Oct 3 2016 10:15:33

      Description

      agent.log is set to debug level and it is not possible to change it.

      agent.log is a new log file for all instances and it shows the statistics of the garbage collection. The frequency of that is set to every 3 seconds by default. This file is located in: /web_agents/apache24_agent/log/

      Steps To Reproduce

      1.) Install an agent
      2.) Hit agent protected page
      3.) Observe the log file:

      tail -f /opt/web_agents/apache24_agent/log/agent.log
      

      Observed result:

      Log is filling with debug logs although was not set debug level and it is not possible to set it

      agent.log
      2016-10-12 14:22:51.613 +0100   DEBUG [0x7fd2767fb700:28408][source/alloc.c:934] agent_memory_scan(): blocks unlinked during scan: 0, current memory free: 0.999994
      2016-10-12 14:22:54.613 +0100   DEBUG [0x7fd2767fb700:28408][source/alloc.c:934] agent_memory_scan(): blocks unlinked during scan: 0, current memory free: 0.999994
      2016-10-12 14:22:57.613 +0100   DEBUG [0x7fd2767fb700:28408][source/alloc.c:934] agent_memory_scan(): blocks unlinked during scan: 0, current memory free: 0.999994
      2016-10-12 14:23:00.613 +0100   DEBUG [0x7fd2767fb700:28408][source/alloc.c:934] agent_memory_scan(): blocks unlinked during scan: 0, current memory free: 0.999994
      2016-10-12 14:23:03.613 +0100   DEBUG [0x7fd2767fb700:28408][source/alloc.c:934] agent_memory_scan(): blocks unlinked during scan: 0, current memory free: 0.999994
      2016-10-12 14:23:06.613 +0100   DEBUG [0x7fd2767fb700:28408][source/alloc.c:934] agent_memory_scan(): blocks unlinked during scan: 0, current memory free: 0.999994
      2016-10-12 14:23:09.613 +0100   DEBUG [0x7fd2767fb700:28408][source/alloc.c:934] agent_memory_scan(): blocks unlinked during scan: 0, current memory free: 0.999994
      2016-10-12 14:23:12.613 +0100   DEBUG [0x7fd2767fb700:28408][source/alloc.c:934] agent_memory_scan(): blocks unlinked during scan: 0, current memory free: 0.999994
      

      Expected result

      Should be possible to set log level and default value should not be DEBUG.

      For this case need to count, that agent could has more instances.

        Attachments

          Activity

            People

            • Assignee:
              chris.lee Chris Lee
              Reporter:
              richard.hruza Richard Hruza
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: