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

dhis2 remove Class Log #417

Merged
merged 3 commits into from
Oct 24, 2023
Merged

dhis2 remove Class Log #417

merged 3 commits into from
Oct 24, 2023

Conversation

mtuchi
Copy link
Collaborator

@mtuchi mtuchi commented Oct 23, 2023

Summary

remove Class Log and replaced

  • Log.success with console.log
  • Log.warn with console.warn
  • Log.error with console.error

Issues #416

Review Checklist

  • Does the PR do what it claims to do?
  • Are there any unit tests? Should there be?
  • Is there a changeset associated with this PR? Should there be? Note that
    dev only changes don't need a changeset.

@mtuchi mtuchi marked this pull request as ready for review October 23, 2023 07:06
@mtuchi mtuchi requested review from taylordowns2000 and josephjclark and removed request for taylordowns2000 October 23, 2023 07:09
Copy link
Member

@taylordowns2000 taylordowns2000 left a comment

Choose a reason for hiding this comment

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

need a quick guide from @josephjclark here. i thought that printing the date was not necessary since that would be optionally (and later?) handled by the runtime. is that not the case?

packages/dhis2/src/Adaptor.js Outdated Show resolved Hide resolved
packages/dhis2/src/Adaptor.js Outdated Show resolved Hide resolved
packages/dhis2/src/Adaptor.js Outdated Show resolved Hide resolved
@josephjclark
Copy link
Collaborator

@taylordowns2000 Yeah, datestamps will be added to all logs by the runtime.

That's a good catch. I'd have just removed the class wrapper but you're right, no need to include the timestamps. They're actually a bit distracting the CLI.

@mtuchi please go ahead and remove the timestamps

@josephjclark josephjclark merged commit bb79e16 into main Oct 24, 2023
@josephjclark josephjclark deleted the dhis2-rm-class-log branch October 24, 2023 08:40
@mtuchi mtuchi mentioned this pull request Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants