Skip to content

Commit

Permalink
chore: update example logging
Browse files Browse the repository at this point in the history
  • Loading branch information
tannerlinsley committed May 12, 2020
1 parent 7868c9e commit efd8654
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/rick-morty/src/Characters.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default function Characters() {
if (status === "loading") return <p>Loading...</p>;
if (status === "error") return <p>Error :(</p>;

console.log(data);
console.info(data);

return (
<div>
Expand Down
2 changes: 1 addition & 1 deletion examples/star-wars/src/Character.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function Character(props) {
if (status === "loading") return <p>Loading...</p>;
if (status === "error") return <p>Error :(</p>;

console.log({ data, status, error });
console.info({ data, status, error });
const homeworldUrlParts = data.homeworld.split("/").filter(Boolean);
const homeworldId = homeworldUrlParts[homeworldUrlParts.length - 1];

Expand Down
2 changes: 1 addition & 1 deletion examples/star-wars/src/Film.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function Film(props) {
if (status === "loading") return <p>Loading...</p>;
// this will not be necessary when v1 is released.
if (data == null) {
console.log("this shouldn't happen but it does 2");
console.info("this shouldn't happen but it does 2");
return <p>Loading...</p>;
}
if (status === "error") return <p>Error :(</p>;
Expand Down

0 comments on commit efd8654

Please sign in to comment.