API Core - v2.4.1
    Preparing search index...

    Function logFailure

    • Write a failure to the log the way a diagnostic report can read it: a known failure as ONE line — the label, then its failureCauseChain — with no stack, since a transient's ten transport frames read as a crash in a report; anything else as the label followed by the error object, so a programming error keeps the stack that locates it.

      Parameters

      • logger: Logger

        The sink.

      • label: string

        What failed, ending in a colon (Failed to fetch devices:).

      • error: unknown

        What it threw.

      Returns void