Select the types of activity you want to include in your feed.
Reduce noisy logging for best-effort backend operations
- downgrade expected PDS miss/failure paths to debug or silence - remove routine success logs from user settings and avatar flows - add tests covering the quieter logging behavior
···722722 });
723723 });
724724725725+ it("should ignore missing PDS records in all mode without warning", async () => {
726726+ const mockSession = { did: "did:plc:abc123" };
727727+ const allWatches = [
728728+ { id: "tracked-1", rkey: "movie-123-1234567890", movieId: "123" },
729729+ ];
730730+ const warnSpy = jest.spyOn(
731731+ (
732732+ service as unknown as {
733733+ logger: { warn: (...args: unknown[]) => void };
734734+ }
735735+ ).logger,
736736+ "warn",
737737+ );
738738+739739+ mockPrismaService.trackedMovie.findMany.mockResolvedValue(allWatches);
740740+ mockDeleteRecord.mockRejectedValue(new Error("RecordNotFound"));
741741+742742+ const result = await service.unmarkWatched(
743743+ "did:plc:abc123",
744744+ mockSession,
745745+ "123",
746746+ "all",
747747+ );
748748+749749+ expect(result).toEqual({
750750+ movieId: "123",
751751+ mode: "all",
752752+ deletedCount: 1,
753753+ });
754754+ expect(warnSpy).not.toHaveBeenCalled();
755755+ });
756756+725757 it("should return empty result when no watch record found in latest mode", async () => {
726758 const mockSession = { did: "did:plc:abc123" };
727759
+1-5
backend/src/movies/movies.service.ts
···294294 this.logger.log(
295295 `Deleted AT record for movie ${movieId} with rkey ${tracked.rkey}`,
296296 );
297297- } catch {
298298- this.logger.warn(
299299- `Failed to delete record ${tracked.rkey}, may not exist in PDS`,
300300- );
301301- }
297297+ } catch {}
302298 }
303299304300 return { movieId, mode, deletedCount: trackedMovies.length };