fix: newlines for logging

pull/2971/head
William Grant 2 years ago
parent 50f144a8c3
commit ab13f39a10

@ -136,6 +136,14 @@ export const OverlayDisappearingMessages = () => {
); );
}, [expireTimer, modeSelected]); }, [expireTimer, modeSelected]);
// useEffect(() => {
// window.log.debug(
// `WIP: OverlayDisappearingMessages: \nmodeSelected ${modeSelected} \nsingleMode ${singleMode} \ntimeSelected ${timeSelected} \ntimerOptions ${JSON.stringify(
// timerOptions.map(option => option.name)
// )}`
// );
// }, [modeSelected, timeSelected]);
if (!disappearingModeOptions) { if (!disappearingModeOptions) {
return null; return null;
} }

@ -483,7 +483,7 @@ export async function innerHandleSwarmContentMessage(
`WIP:innerHandleSwarmContentMessage: ${ `WIP:innerHandleSwarmContentMessage: ${
content.dataMessage.syncTarget ? 'This is a sync message.\n' : '' content.dataMessage.syncTarget ? 'This is a sync message.\n' : ''
} content: ${JSON.stringify(content)} ${ } content: ${JSON.stringify(content)} ${
expireUpdate ? `\nexpireUpdate: ${JSON.stringify(expireUpdate)}` : '' expireUpdate ? `\n\nexpireUpdate: ${JSON.stringify(expireUpdate)}` : ''
}` }`
); );

@ -433,7 +433,7 @@ export async function checkForExpireUpdateInContentMessage(
window.log.info( window.log.info(
`WIP: checkForExpireUpdateInContentMessage() This is an outdated disappearing message setting.\ncontent: ${JSON.stringify( `WIP: checkForExpireUpdateInContentMessage() This is an outdated disappearing message setting.\ncontent: ${JSON.stringify(
content content
)}\nconvoToUpdate: ${JSON.stringify(convoToUpdate)}` )}\n\nconvoToUpdate: ${JSON.stringify(convoToUpdate)}`
); );
return undefined; return undefined;
} }
@ -480,7 +480,7 @@ export async function checkForExpireUpdateInContentMessage(
window.log.debug( window.log.debug(
`WIP: Received a legacy disappearing message before v2 was released without values set. Using the conversation settings.\ncontent: ${JSON.stringify( `WIP: Received a legacy disappearing message before v2 was released without values set. Using the conversation settings.\ncontent: ${JSON.stringify(
content content
)}\nconvoToUpdate: ${JSON.stringify(convoToUpdate)}` )}\n\nconvoToUpdate: ${JSON.stringify(convoToUpdate)}`
); );
expireUpdate.expirationTimer = convoToUpdate.get('expireTimer'); expireUpdate.expirationTimer = convoToUpdate.get('expireTimer');
@ -501,7 +501,7 @@ export async function checkForExpireUpdateInContentMessage(
window.log.debug( window.log.debug(
`WIP: Received a legacy disappearing message after v2 was released. Overriding it with the conversation settings\ncontent: ${JSON.stringify( `WIP: Received a legacy disappearing message after v2 was released. Overriding it with the conversation settings\ncontent: ${JSON.stringify(
content content
)}\nconvoToUpdate: ${JSON.stringify(convoToUpdate)}` )}\n\nconvoToUpdate: ${JSON.stringify(convoToUpdate)}`
); );
expireUpdate.expirationTimer = convoToUpdate.get('expireTimer'); expireUpdate.expirationTimer = convoToUpdate.get('expireTimer');

Loading…
Cancel
Save