logging
This commit is contained in:
parent
3edfdc5e98
commit
c489a2d448
1 changed files with 5 additions and 2 deletions
|
@ -10,6 +10,9 @@ import { makePaginationQuery } from "../../common/make-pagination-query.js";
|
|||
import { generateVisibilityQuery } from "../../common/generate-visibility-query.js";
|
||||
import { generateMutedUserQuery } from "../../common/generate-muted-user-query.js";
|
||||
import { generateBlockedUserQuery } from "../../common/generate-block-query.js";
|
||||
import { apiLogger } from "../../logger.js";
|
||||
|
||||
const logger = apiLogger.createSubLogger("search", "blue", true);
|
||||
|
||||
export const meta = {
|
||||
tags: ["notes"],
|
||||
|
@ -124,8 +127,8 @@ export default define(meta, paramDef, async (ps, me) => {
|
|||
});
|
||||
|
||||
return await Notes.packMany(notes, me);
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
} catch (error) {
|
||||
logger.error(error.message);
|
||||
return [];
|
||||
}
|
||||
} else if (sonic) {
|
||||
|
|
Loading…
Add table
Reference in a new issue