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

Feature/logging #53

Merged
merged 24 commits into from
May 17, 2022
Merged

Feature/logging #53

merged 24 commits into from
May 17, 2022

Conversation

leihuayi
Copy link
Contributor

  • rename "cd" folder to "infra"
  • filebeat docker image + conf file (needs env var "OVH_TOKEN" specified)
  • write logs to backend/logs folder locally using python logging+ gelf-formatter libraries
  • route http://localhost:5000/logs or http://preprod.basegun.fr/api/logs to show logs in browser (blocked in prod)
  • write the following informations in logs:

• date and time of identification request (timestamp)
• url of uploaded file (string)
• result label (string)
• result confidence score (float in 0-100)
• processing time of ML algorithm (float in secs)
• uploading time of photo (float in secs)
• approximative geolocation of user (string of "latitude, longitude")
• unique identification of user (sha-256 hash of ip+user-agent+hardwareConcurrency in frontend)
• (TODO) result judged correct or not by user

@github-actions github-actions bot added the feature New feature / functionality label Apr 28, 2022
@leihuayi leihuayi linked an issue Apr 28, 2022 that may be closed by this pull request
2 tasks
@leihuayi leihuayi merged commit 1f74279 into develop May 17, 2022
@leihuayi leihuayi deleted the feature/logging branch May 17, 2022 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature / functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Track website usage
1 participant