Skip to content

Commit

Permalink
Add announce debug
Browse files Browse the repository at this point in the history
  • Loading branch information
mei23 committed Apr 27, 2019
1 parent 9834267 commit 3e8329e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/remote/activitypub/kernel/announce/note.ts
Expand Up @@ -43,16 +43,16 @@ export default async function(resolver: Resolver, actor: IRemoteUser, activity:
} catch (e) {
// 対象が4xxならスキップ
if (e.statusCode >= 400 && e.statusCode < 500) {
logger.warn(`Ignored announce target ${note.id || note} - ${e.statusCode}`);
logger.warn(`Ignored announce target: ${uri} => ${note.id || note} - ${e.statusCode}`);
return;
}
logger.warn(`Error in announce target ${note.id || note} - ${e.statusCode || e}`);
logger.warn(`Error in announce target: ${uri} => ${note.id || note} - ${e.statusCode || e}`);
throw e;
}

// skip unavailable
if (renote == null) {
logger.warn(`announce target is null ${note.id || note}`);
logger.warn(`announce target is null: ${uri} => ${note.id || note}`);
return;
}

Expand Down

0 comments on commit 3e8329e

Please sign in to comment.