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

[TECH] Refactorer le logger #254

Merged
merged 2 commits into from
Sep 12, 2023
Merged

[TECH] Refactorer le logger #254

merged 2 commits into from
Sep 12, 2023

Conversation

octo-topi
Copy link
Contributor

@octo-topi octo-topi commented May 30, 2023

🦄 Problème

Le logger utilise

  • la mutation d'objet
  • un paramètre anonyme

En plus, on logge le message au lieu de la stack.

🤖 Proposition

Créer un nouvel objet.
Nommer le paramètre.
Logger le message au lieu de la stack.

💯 Pour tester

Vérifier la CI

@octo-topi octo-topi added cross-team Toutes les équipes de dev 👀 Tech Review Needed labels May 30, 2023
@octo-topi octo-topi self-assigned this May 30, 2023
@octo-topi octo-topi changed the title refactor [TECH] refa May 30, 2023
@pix-bot-github
Copy link

Une fois l'application déployée, elle sera accessible à cette adresse https://bot-pr254.review.pix.fr
Les variables d'environnement seront accessibles sur scalingo https://dashboard.scalingo.com/apps/osc-fr1/pix-bot-review-pr254/environment

@octo-topi octo-topi changed the title [TECH] refa [TECH] Refactorer le logger May 30, 2023
Copy link
Contributor

@annemarie35 annemarie35 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

C'est beaucoup plus clair !

Copy link
Contributor

@annemarie35 annemarie35 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

J'ai fait le rebase sur main, prêt à être mergé

@github-actions github-actions bot merged commit 40ce814 into main Sep 12, 2023
3 of 4 checks passed
@github-actions github-actions bot deleted the refactor-logger branch September 12, 2023 08:25
event,
message: typeof message === 'object' ? JSON.stringify(message) : message,
job,
stack: typeof stack === 'object' ? JSON.stringify(stack) : stack,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Marrant parce qu'on avait fait ça avant :

stack = JSON.stringify(message);

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

Successfully merging this pull request may close these issues.

5 participants