-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Log dev server access for log level verbose or more #2402
Log dev server access for log level verbose or more #2402
Conversation
108a4e0
to
6cf6524
Compare
@@ -1,9 +1,11 @@ | |||
const assert = require('assert'); | |||
const path = require('path'); | |||
const fs = require('@parcel/fs'); | |||
const logger = require('@parcel/Logger'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any guidance on how to import that properly? Seems to work locally, but not in CI.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You have a typo it's lowercase l
, '@parcel/logger'
const protocol = req.connection.encrypted ? 'https' : 'http'; | ||
const fullUrl = `${protocol}://${req.headers.host}${req.url}`; | ||
|
||
logger.verbose(fullUrl); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably a good idea to add some more info here, besides from just a url, something like Request: <url>
6cf6524
to
e44e845
Compare
Thanks for the input! I think we're getting there 😆 CI fails with one last error, but I'm clueless about it, see screenshot Also, here's a screenshot of the final solution On a side note: If full test suite is ran, I've noticed the test I think in Babel 7 the non-root babel-plugin-autoinstall/.babelrc is being ignored since not explicitly specified otherwise. Therefore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution!
4021245
to
6aa3334
Compare
Attempts to address #2390
Failing tests
any idea how to import that properly so that CI works? It's fine locally.