mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-09 14:58:47 +00:00
Add some debug logging for k8s
This commit is contained in:
parent
0d3a57be13
commit
d1e5d58e01
2 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue