Closed koistya closed 2 years ago
If you're using import { log } from "./core" directly (as opposed ctx.log(...)), the res argument is now ommited:
import { log } from "./core"
ctx.log(...)
res
import { log } from "../core"; // BEFORE log(req, res, "WARNING", "Some text or object"); // AFTER log(req, "WARNING", "Some text or object")
When used inside GraphQL type resolvers, nothing has changed:
async resolve(self, args, ctx) { ctx.log("ERROR", new Error(...)); }
If you're using
import { log } from "./core"
directly (as opposedctx.log(...)
), theres
argument is now ommited:When used inside GraphQL type resolvers, nothing has changed: