Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-1559

Reports promises don't log to Windows event log

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.1
    • Component/s: Promise type: reports
    • Labels:
      None

      Description

      Messages generated by reports promises do not show up in the Windows event log - any other message emitted through the logging subsystem does.

      Reports promises don't go through the logging subsystem - @verify_reports.c:ReportToLog@ uses @printf@ and @syslog@ (except on Windows) to avoid reports messages being prefixed with timestamp and stack path.

      Instead of calling @syslog()@, the function needs to call @LogToSystemLog@ with @LOG_LEVEL_NOTICE@. @LogToSystemLog@ is a static function in @logging.c@, and is then specialised on Windows to write to the event log.

        Attachments

          Release management

            Activity

              People

              Assignee:
              a10025 Volker Hilsheimer (Inactive)
              Reporter:
              a10025 Volker Hilsheimer (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: