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

default server/index.js duplicates proxied request logs #8364

Closed
ghost opened this issue Jan 15, 2019 · 0 comments
Closed

default server/index.js duplicates proxied request logs #8364

ghost opened this issue Jan 15, 2019 · 0 comments

Comments

@ghost
Copy link

ghost commented Jan 15, 2019

example app for reproducing issue

$ git clone https://github.com/efx/poc-bug --branch ember-cli-proxy-duplicate
$ cd poc-bug/test-app
$ yarn install
$ npm start
$ npm run start-proxy
$ curl -I http://localhost:4200/api/hello

Upon making a request to the API, I see ember serve's log twice for the proxy request.
screen shot 2019-01-15 at 15 11 01
I expect to see the log once.
Perhaps this is from the proxy middleware registering additional logging? https://github.com/ember-cli/ember-cli/blob/master/lib/tasks/server/middleware/proxy-server/index.js#L41
The default blueprint for ember generate server attaches logging by default as show in the dummy app: https://github.com/efx/poc-bug/blob/ember-cli-proxy-duplicate/test-app/server/index.js#L19

Output from ember version --verbose && npm --version && yarn --version:

ember-cli: 3.8.0-beta.1
http_parser: 2.8.0
node: 10.15.0
v8: 6.8.275.32-node.45
uv: 1.23.2
zlib: 1.2.11
ares: 1.15.0
modules: 64
nghttp2: 1.34.0
napi: 3
openssl: 1.1.1a
icu: 62.1
unicode: 11.0
cldr: 33.1
tz: 2018e
os: darwin x64
6.4.1
1.12.3
@ghost ghost closed this as completed Nov 7, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant