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

Console messages don't display, even though X-ChromeLogger-Data header exists #60

Open
stillnet opened this issue May 7, 2015 · 9 comments

Comments

@stillnet
Copy link

stillnet commented May 7, 2015

I'm trying to use chromelogger in an SPA. I make ajax calls, and on the server side I use chromelogger on that request. When the request completes I can see a lot of data in the X-ChromeLogger-Data header, but I don't get data in my console. occasionally the data shows up, but most of the time it doesn't.

Any ideas? The chromelogger icon in chrome is enabled. I'm on chrome 42.0.2311.13. Just installed the chromelogger extension yesterday so I'm on the latest version.

Thanks.

@ccampbell
Copy link
Owner

Have you clicked the icon to make sure it is toggled on?

@stillnet
Copy link
Author

stillnet commented May 7, 2015

Yes as I said the chromelogger icon is enabled. I've togged it off and back on to see if that made a difference and it didn't.

@ccampbell
Copy link
Owner

Ah sorry about that... hmmm... Can you try it on a regular request that is not ajax?

If you go to https://craig.is/writing/chrome-logger and open the console and toggle on the extension do you see the logs?

@ccampbell
Copy link
Owner

Interesting... I am actually not seeing them show up every time too. I wonder if this is something specific to a new version of chrome. I will have to dig into it more later.

@stillnet
Copy link
Author

stillnet commented May 7, 2015

Thanks. I noticed the irregularity when testing on a single page also.

@filso
Copy link

filso commented Sep 7, 2015

Hi, I believe there's some race condition there. maybe _listenForLogMessages runs too late, after response is back?

@popadotstudio
Copy link

Doesn't work reliably I'm afraid. Probably because Chrome does goofy stuff to the headers/caches them? Its though to use in production.

@ccampbell
Copy link
Owner

Is there a page where this is consistently reproducible or some other way I can test it?

@DeadpoolKerns
Copy link

Well - just figured out the issue. In case anyone else has this issue - my issue was as simple as not selecting the Info type errors in the console. For anyone else experiencing this issue in getting messages in Chrome developer console make sure the error types you want to see are selected.
phpconsole

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

No branches or pull requests

5 participants