differentiate between "error" and "exception" in mastodon API

This commit is contained in:
Hazelnoot 2025-05-06 21:20:31 -04:00
parent 2c5fb36e7f
commit 34e0d73a60

View file

@ -34,7 +34,7 @@ export class MastodonLogger {
const path = getPath(request); const path = getPath(request);
// Exceptions are always server errors, and should therefore always be logged. // Exceptions are always server errors, and should therefore always be logged.
this.logger.error(`Error in mastodon endpoint ${request.method} ${path}:`, ex); this.logger.error(`Exception in mastodon endpoint ${request.method} ${path}:`, ex);
} }
} }