Skip to content

Commit 3d367ef

Browse files
committed
Enhance error logging in R1MintedLastEpoch and Node components for better clarity. Remove commented console logs in actions.ts for cleaner code.
1 parent 5a86762 commit 3d367ef

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

app/server-components/Nodes/Node.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default async function Node({ ratio1Addr, node }: { ratio1Addr: R1Address
2121
}
2222

2323
if (!licenseId || !licenseType) {
24-
console.log('No license found for node', node.eth_addr);
24+
console.log('[Node]No license found for node', node.eth_addr);
2525
return null;
2626
}
2727
} catch (error) {

app/server-components/R1MintedLastEpoch.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ export default async function R1MintedLastEpoch() {
1616

1717
try {
1818
value = await fetchCachedR1MintedLastEpoch();
19-
// console.log('R1MintedLastEpoch value', value);
2019
} catch (error) {
21-
console.log('R1MintedLastEpoch error', error);
20+
console.log('[R1MintedLastEpoch] error', error);
2221
return <div className="text-lg text-slate-600 md:text-xl"></div>;
2322
}
2423

lib/actions.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ export const search = async (
134134

135135
try {
136136
response = await getActiveNodes(1, query);
137-
console.log('getActiveNodes response', response);
138137

139138
if (response.result.nodes) {
140139
Object.entries(response.result.nodes).forEach(([_ratio1Addr, node]) => {

0 commit comments

Comments
 (0)