Hid silenced content from the logs

This commit is contained in:
Thaum Rystra
2024-10-30 17:53:39 +02:00
parent 2a5a97f04a
commit 84282cef6c
23 changed files with 163 additions and 46 deletions

View File

@@ -27,7 +27,11 @@ export default async function applyRollProperty(
logValue.push(toString(rolled));
}
errors?.forEach(error => {
result.appendLog({ name: 'Error', value: error.message }, task.targetIds);
result.appendLog({
name: 'Error',
value: error.message,
silenced: prop.silent,
}, task.targetIds);
});
// Store the result
@@ -52,7 +56,7 @@ export default async function applyRollProperty(
name: prop.name,
value: logValue.join('\n'),
inline: true,
...prop.silent && { silenced: true },
silenced: prop.silent,
}, task.targetIds);
// Apply children