Log push sends a single log line from an RPC service twice

Any console.log from this RPC stub gets sent twice to my log sink

class Payments extends RpcTarget {
  logger: Logger;

  constructor(ctx: CallerContext) {
    super();
    this.logger = new ConsoleLogger({
      requestId: ctx.requestId,
      application: "payments",
      defaultFields: {
        rpcClient: ctx.application
      }
    })
  }

  async queryPaymentStatus(data: any) {
    ... // this log is received twice in my http log sink (always)
    this.logger.info("tsq completed successfully", {
      event: "event.payments.tsq",
       ...data
    });
    ...
  }
}
Was this page helpful?