Skip to content

Conversation

@swyxio
Copy link
Contributor

@swyxio swyxio commented Aug 12, 2020

upgrade DataStore missing config log from info to warn to avoid user error

Issue #, if available: n/a

Description of changes:

when users forget to Amplify.configure, DataStore still works, but this warning message is hidden bc it is at the info level which is hidden by default. This fixes the message to warn instead of info.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

upgrade DataStore missing config log from info to warn to avoid user error
@swyxio swyxio requested a review from manueliglesias as a code owner August 12, 2020 21:01
@swyxio swyxio changed the title upgrade DataStore missing config log from info to warn (small fix) upgrade DataStore missing config log from info to warn Aug 12, 2020
Copy link
Contributor

@manueliglesias manueliglesias left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Thanks @sw-yx !

@codecov
Copy link

codecov bot commented Aug 12, 2020

Codecov Report

Merging #6562 into main will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #6562   +/-   ##
=======================================
  Coverage   73.26%   73.26%           
=======================================
  Files         208      208           
  Lines       12920    12920           
  Branches     2525     2432   -93     
=======================================
  Hits         9466     9466           
- Misses       3263     3291   +28     
+ Partials      191      163   -28     
Impacted Files Coverage Δ
packages/datastore/src/datastore/datastore.ts 86.86% <100.00%> (ø)
packages/auth/src/OAuth/OAuth.ts 56.11% <0.00%> (ø)
packages/core/src/Credentials.ts 31.67% <0.00%> (ø)
packages/analytics/src/Analytics.ts 64.81% <0.00%> (ø)
packages/datastore/src/sync/index.ts 15.38% <0.00%> (ø)
packages/datastore/src/sync/outbox.ts 24.48% <0.00%> (ø)
packages/datastore/src/storage/storage.ts 71.66% <0.00%> (ø)
packages/core/src/OAuthHelper/GoogleOAuth.ts 33.33% <0.00%> (ø)
packages/core/src/Util/Reachability.native.ts 37.50% <0.00%> (ø)
packages/xr/src/Providers/SumerianProvider.ts 47.55% <0.00%> (ø)
... and 9 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 797e0bf...379ebd9. Read the comment docs.

@sammartinez sammartinez merged commit e311464 into aws-amplify:main Aug 12, 2020
nubpro pushed a commit to nubpro/amplify-js that referenced this pull request Oct 2, 2020
)

upgrade DataStore missing config log from info to warn to avoid user error

Co-authored-by: Sam Martinez <[email protected]>
iartemiev pushed a commit that referenced this pull request Oct 13, 2020
upgrade DataStore missing config log from info to warn to avoid user error

Co-authored-by: Sam Martinez <[email protected]>
@github-actions
Copy link

This pull request has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels or Discussions for those types of questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 13, 2021
@swyxio swyxio deleted the patch-1 branch December 22, 2021 19:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants