mirror of
https://github.com/gethomepage/homepage.git
synced 2026-10-18 08:21:48 -07:00
Chore: again, improve k8s error logging
This commit is contained in:
@@ -170,6 +170,16 @@ describe("utils/logger", () => {
|
||||
});
|
||||
expect(plainMsg).toBe("[t] info: hello");
|
||||
|
||||
const causeMsg = formatter({
|
||||
timestamp: "t",
|
||||
level: "error",
|
||||
label: "x",
|
||||
stack: "STACK",
|
||||
message: "fetch failed",
|
||||
cause: { stack: "CAUSE STACK" },
|
||||
});
|
||||
expect(causeMsg).toBe("[t] error: <x> STACK\ncaused by: CAUSE STACK");
|
||||
|
||||
const out = splat.transform(
|
||||
{
|
||||
message: "Hello %s",
|
||||
|
||||
Reference in New Issue
Block a user