Skip to content

Disabling warnings message in the console of emulators. #4939

Open

Description

@a-b-kudinov

Issue: Too many warning messages in the function emulator console that occur when requesting external network resources. In projects where external requests are constantly used, this greatly complicates the debugging process.

External network resource requested!
URL: "https://api.***"
Be careful, this may be a production service.

It would be very convenient if there was some parameter when starting emulators that would disable the output of certain types of notifications. Or maybe there is already some other way to do this?

Activity

  1. icopp commented on Jul 9, 2022

    @icopp

    Same issue here. Part of my test environment is, itself, a remote system, making this warning completely pointless log spam.

  2. a-b-kudinov commented on Nov 30, 2022

    @a-b-kudinov
    Author

    Just in case. For now, you can turn off unnecessary notifications by the "surgical" method.

    Find the file:
    find / -name emulatorLogger.js

    Comment out the lines:
    // case "unidentified-network-access":
    // this.log("WARN", `External network resource requested!\n - URL: "${systemLog.data.href}"\n - Be careful, this may be a production service.`);
    // break;

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions