fedimbed: more debug

This commit is contained in:
Cynthia Foxwell 2022-12-31 13:09:32 -07:00
parent 705f9062e0
commit 666daf4fdf

View file

@ -135,7 +135,7 @@ async function processUrl(msg, url) {
} else if (noteId.indexOf("#") > -1) {
noteId = noteId.split("#")[0];
}
logger.debug("fedimbed", "Misskey post ID: " + noteId);
logger.verbose("fedimbed", "Misskey post ID: " + noteId);
redirUrl = urlObj.origin + "/api/notes/show/";
options.method = "POST";
options.body = JSON.stringify({noteId});
@ -148,7 +148,7 @@ async function processUrl(msg, url) {
}
if (redirUrl) {
logger.verbose("fedimbed", `Redirecting "${url}" to "${redirUrl}"`);
logger.verbose("fedimbed", `Redirecting "${url}" to "${redirUrl}": ${JSON.stringify(options)}, ${JSON.stringify(headers)}`);
const rawPostData2 = await fetch(
redirUrl,
Object.assign(options, {