Improve readability of messages written to disk for debug purposes
This commit is contained in:
parent
b47271c212
commit
a6a495e21f
|
@ -149,7 +149,7 @@ client.connect().then(async () => {
|
||||||
|
|
||||||
fs.writeFileSync(
|
fs.writeFileSync(
|
||||||
"./persist/messages.json",
|
"./persist/messages.json",
|
||||||
JSON.stringify(session.data),
|
JSON.stringify(session.data, null, 2),
|
||||||
"utf8",
|
"utf8",
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -185,7 +185,7 @@ client.connect().then(async () => {
|
||||||
|
|
||||||
fs.writeFileSync(
|
fs.writeFileSync(
|
||||||
"./persist/messages.json",
|
"./persist/messages.json",
|
||||||
JSON.stringify(session.data),
|
JSON.stringify(session.data, null, 2),
|
||||||
"utf8",
|
"utf8",
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -230,7 +230,7 @@ client.connect().then(async () => {
|
||||||
|
|
||||||
fs.writeFileSync(
|
fs.writeFileSync(
|
||||||
"./persist/messages.json",
|
"./persist/messages.json",
|
||||||
JSON.stringify(session.data),
|
JSON.stringify(session.data, null, 2),
|
||||||
"utf8",
|
"utf8",
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue