Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adaptor debug logs are weird #815

Open
josephjclark opened this issue Nov 7, 2024 · 0 comments
Open

Adaptor debug logs are weird #815

josephjclark opened this issue Nov 7, 2024 · 0 comments

Comments

@josephjclark
Copy link
Collaborator

Not sure what this issue is yet!

If in an adaptor I do console.debug, a few strange things happen:

In the CLI, the log seems to get duplicated if I run with --log debug:

[R/T] ❯ Starting operation 2
Collections: Downloading data from "demo"...
Collections: fetched chunk of 0 values from "demo"
Collections: Fetched total of 0 values from "demo"
[JOB] ℹ Fetched 0 items

With default logging, the adaptor's console.debug line seems to still appear:

Collections: Downloading data from "demo"...
Collections: fetched chunk of 0 values from "demo"
Collections: Fetched total of 0 values from "demo"

Obviously note that in the CLI, we don't see any level or namespace information here. This is known to me (although I don't think I have an issue for it...)

In Lightning, the same debug line doesn't seem to appear at all:

ADA Collections: Downloading data from "demo"...
ADA Collections: Fetched total of 0 values from "demo"

This must be something to do with how I'm overriding the console global in the adaptor....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: New Issues
Development

No branches or pull requests

1 participant