We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
for streamers, blitz logs expose sensitive data by default on the terminal
// Note: This stays in the /pages folder for the time being import { rpcHandler } from "@blitzjs/rpc" import { api } from "src/app/blitz-server" const getBlitzLogLevel = (): "info" | "debug" | undefined => { const requestedLevel = process.env.BLITZ_LOG_DISABLE_LEVEL if (requestedLevel === "info" || requestedLevel === "debug") { return requestedLevel } return undefined } export default api( rpcHandler({ onError: (error, ctx) => console.log(error), logging: { disablelevel: getBlitzLogLevel(), }, }) )
The text was updated successfully, but these errors were encountered:
related Vandivier/ladderly-3#182
Sorry, something went wrong.
@Vandivier this sounds like a good default, will you be willing to send a PR?
@siddhsuresh yes, thanks! i'll get a PR up in the next 1-3 days
Successfully merging a pull request may close this issue.
What do you want and why?
for streamers, blitz logs expose sensitive data by default on the terminal
Possible implementation(s)
The text was updated successfully, but these errors were encountered: