mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
better logging for event policy
This commit is contained in:
parent
adcaa207d9
commit
889d36c7d6
1 changed files with 7 additions and 9 deletions
|
|
@ -55,15 +55,13 @@ export class PolicyWorker implements NPolicy {
|
|||
pubkey: await conf.signer.getPublicKey(),
|
||||
mode: conf.policyMode,
|
||||
});
|
||||
if (conf.policyMode === 'script') {
|
||||
logi({
|
||||
level: 'info',
|
||||
ns: 'ditto.system.policy',
|
||||
msg: 'Using custom policy',
|
||||
path: conf.policy,
|
||||
enabled: true,
|
||||
});
|
||||
}
|
||||
logi({
|
||||
level: 'info',
|
||||
ns: 'ditto.system.policy',
|
||||
msg: `Using ${conf.policyMode === 'script' ? 'custom' : 'event'} policy`,
|
||||
path: conf.policyMode === 'script' ? conf.policy : undefined,
|
||||
enabled: true,
|
||||
});
|
||||
} catch (e) {
|
||||
if (e instanceof Error && e.message.includes('Module not found')) {
|
||||
logi({
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue