Merge pull request #1738 from gtoxlili/main
fix : specify the default hostname if docker builds with a proxymain
commit
bb3f6ee086
@ -1,7 +1,10 @@
|
||||
export function prettyObject(msg: any) {
|
||||
const obj = msg;
|
||||
if (typeof msg !== "string") {
|
||||
msg = JSON.stringify(msg, null, " ");
|
||||
}
|
||||
const prettyMsg = ["```json", msg, "```"].join("\n");
|
||||
return prettyMsg;
|
||||
if (msg === "{}") {
|
||||
return obj.toString();
|
||||
}
|
||||
return ["```json", msg, "```"].join("\n");
|
||||
}
|
||||
|
Loading…
Reference in new issue