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

Logging within cfPS() corrupts the message

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Logging
    • Labels:
      None

      Description

      While debugging Nova code with Nishes it happened that we put a Log(,"%ld,%s,%s", (long) now, promiseHandle, reason) statement inside @NotePromiseCompliance()@, which is called from @cfPS()@.

      This created subtle, hard to debug problems, including silent corruption of the @cfPS()@ message.

      I create this ticket since it goes deep into our Logging mechanism and it already took me lot of time to debug. Mikhail, maybe you can have a look?

        Attachments

          Activity

            People

            • Assignee:
              a10038 jimis (Dimitrios Apostolou)
              Reporter:
              a10038 jimis (Dimitrios Apostolou)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Summary Panel