mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-07 09:35:54 -08:00
Add some debug logging for k8s
This commit is contained in:
@@ -22,11 +22,12 @@ export default async function handler(req, res) {
|
||||
.then((response) => response.body)
|
||||
.catch((error) => {
|
||||
logger.error("Error getting ingresses: %d %s %s", error.statusCode, error.body, error.response);
|
||||
logger.debug(error);
|
||||
return null;
|
||||
});
|
||||
if (!nodes) {
|
||||
return res.status(500).send({
|
||||
error: "unknown error",
|
||||
error: "An error occurred while fetching nodes, check logs for more details.",
|
||||
});
|
||||
}
|
||||
let cpuTotal = 0;
|
||||
|
||||
Reference in New Issue
Block a user