Skip to content

Log messages with extra string arguments are scrambled #10770

Open

Description

@mtrezza

New Issue Checklist

Issue Description

Log calls that pass extra string arguments are logged unreadably. Winston's format.splat() copies each extra string into the log entry character by character, and the first transport consumes the arguments, so later transports log only the first argument.

Affected calls:

  • MongoTransform.js: "Found an unexpected reserved key, dropping it.", "Found a pointer column not in the schema, dropping it.", "Found a pointer in a non-pointer column, dropping it."
  • request.js: "multiple content-type headers are set."

Steps to reproduce

const log = require('parse-server/lib/logger').default;
log.warn('transform.js', 'Found an unexpected reserved key, dropping it.', 'Stories', '_foo');

Actual Outcome

  • Console: warn: transform.js
  • Log file: {"0":"_","1":"f",…,"level":"warn","message":"transform.js"}

Expected Outcome

The message, class name and key are logged readably.

Environment

Server

  • Parse Server version: 9.10.4-alpha.4
  • Operating system: macOS 15.6
  • Local or remote host: local

Database

  • System (MongoDB or Postgres): n/a
  • Database version: n/a
  • Local or remote host: n/a

Client

  • SDK: n/a
  • SDK version: n/a

Logs

See Actual Outcome.

Activity

  1. parse-github-assistant commented on Oct 9, 2026

    @parse-github-assistant

    🚀 Thanks for opening this issue!

    ℹ️ You can help us to fix this issue faster by opening a pull request with a failing test. See our Contribution Guide for how to make a pull request, or read our New Contributor's Guide if this is your first time contributing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions