Skip to content

Cannot disable console warnings #7431

@alioguzhan

Description

@alioguzhan

New Issue Checklist

Issue Description

I have below log appears when I started the Parse server:

warn: DeprecationWarning: The Parse Server option 'directAccess' default will change to 'true' in a future version. Additionally, the environment variable 'PARSE_SERVER_ENABLE_EXPERIMENTAL_DIRECT_ACCESS' will be deprecated and renamed to 'PARSE_SERVER_DIRECT_ACCESS' in a future version; it is currently possible to use either one.

DeprecationWarning: Listening to events on the Db class has been deprecated and will be removed in the next major version.

And this warning causes pm2-dev to keeps restarting the process. I want to disable this warning in development mode so I tried below in server options:

{
    verbose: false,
    silent: false,
    logLevel: "error"
}

I also tried to set directAccess explicitly in server options but not luck. It is still there.

Steps to reproduce

Install the parse-server from master branch.

Actual Outcome

I can't disable / silence the warnings.

Server

  • Parse Server version: git+https://github.com/parse-community/parse-server.git#f6a4172
  • Operating system: Ubuntu 20.04
  • Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): localhost

Database

  • System (MongoDB or Postgres): Mongo
  • Database version: 4.4.4
  • Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): localhost

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