Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-12962

New ambari-agent logging infra makes it difficult to attach a log4j appender

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.2
    • Component/s: None
    • Labels:
      None

      Description

      the logger used in a lot of the python scripts under ambari_agent are changed
      from root logger to module logger.
      We need the configuration of logger (add handlers, etc) in main.py to be root
      logger so we can get logs in syslog.

      See - AMBARI-235(https://hwxmonarch.atlassian.net/browse/AMBARI-235)

        Issue Links

          Activity

          Hide
          hudson Hudson added a comment -

          SUCCESS: Integrated in Ambari-trunk-Commit #3365 (See https://builds.apache.org/job/Ambari-trunk-Commit/3365/)
          AMBARI-12962. New ambari-agent logging infra makes it difficult to attach a log4j appender (aonishuk) (aonishuk: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=35bc58de3e7e882e6607103fcc2f3ccd1b951ac5)

          • ambari-agent/src/main/python/ambari_agent/main.py
          Show
          hudson Hudson added a comment - SUCCESS: Integrated in Ambari-trunk-Commit #3365 (See https://builds.apache.org/job/Ambari-trunk-Commit/3365/ ) AMBARI-12962 . New ambari-agent logging infra makes it difficult to attach a log4j appender (aonishuk) (aonishuk: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=35bc58de3e7e882e6607103fcc2f3ccd1b951ac5 ) ambari-agent/src/main/python/ambari_agent/main.py
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Ambari-branch-2.1 #458 (See https://builds.apache.org/job/Ambari-branch-2.1/458/)
          AMBARI-12962. New ambari-agent logging infra makes it difficult to attach a log4j appender (aonishuk) (aonishuk: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=864a50f06eb9a54fd2d2561fff65372f822cc9de)

          • ambari-agent/src/main/python/ambari_agent/main.py
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Ambari-branch-2.1 #458 (See https://builds.apache.org/job/Ambari-branch-2.1/458/ ) AMBARI-12962 . New ambari-agent logging infra makes it difficult to attach a log4j appender (aonishuk) (aonishuk: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=864a50f06eb9a54fd2d2561fff65372f822cc9de ) ambari-agent/src/main/python/ambari_agent/main.py
          Hide
          aonishuk Andrew Onischuk added a comment -

          Committed to trunk and branch-2.1

          Show
          aonishuk Andrew Onischuk added a comment - Committed to trunk and branch-2.1

            People

            • Assignee:
              aonishuk Andrew Onischuk
              Reporter:
              aonishuk Andrew Onischuk
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development