Skip to content
This repository has been archived by the owner on Oct 1, 2018. It is now read-only.

Add optional logging for server (requests for assets as clients fetch updates) #64

Closed
sgilroy opened this issue Nov 10, 2016 · 2 comments

Comments

@sgilroy
Copy link

sgilroy commented Nov 10, 2016

Logging is currently used to indicate when clients connect/disconnect (via socket.io). This only works for clients using the addon. It would be helpful to also see when clients fetch updates, including clients not using the addon. Without this logging it is hard to figure out if the remote updates are working, especially if the client is slow or has limited bandwidth.

Ideally, cordova-hcp server would log more details about addon clients. The following events should get logged:

  • connect and disconnect (already implemented)
  • fetch start
  • fetch complete
  • fetch error
  • update

For each event, include some details about the client:

  • device id (uniquely identify the client)
  • platform (iOS or Android)
  • model (such as iPhone 7)
  • current web version

For clients not connected via socket.io (not using the addon), requests for individual resources could still be logged, and perhaps some details about the client (platform and model) can be inferred from the user agent header of the request.

@nikDemyankov
Copy link
Member

nikDemyankov commented Nov 13, 2016

Yes, that can be helpful during the development. Thanks for the idea.

@nordnet-deprecation-bot
Copy link
Contributor

👋 Hi! Thank you for your interest in this repo.

😢 We are not using nordnet/cordova-hot-code-push-cli anymore, and we lack the manpower and the experience needed to maintain it. We are aware of the inconveniece that this may cause you. Feel free to use it as is, or create your own fork.

🔒 This will now be closed & locked.

ℹ️ Please see #79 for more information.

@nordnet nordnet locked and limited conversation to collaborators Sep 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants