Skip to content

Commit

Permalink
chore: lower logs
Browse files Browse the repository at this point in the history
  • Loading branch information
lukepolo committed Nov 4, 2024
1 parent 63fca0e commit 8951f50
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/kubernetes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ export async function getNodeStats() {
metrics,
};
} catch (error) {
console.error("Error getting node stats:", error);
throw error;
console.error("Error getting node stats:", error.message);
}
}

Expand Down Expand Up @@ -107,13 +106,12 @@ export async function getPodStats() {
metrics,
});
} catch (error) {
console.error("Error getting pod metrics:", error);
console.error("Error getting pod metrics:", error.message);
}
}

return stats;
} catch (error) {
console.error("Error listing pods:", error);
throw error;
console.error("Error listing pods:", error.message);
}
}

0 comments on commit 8951f50

Please sign in to comment.