-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
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
Turn off all deployment logs from deployApp #1051
Comments
Is there any update regarding this issue? |
Customer ticket 101818 @alessap - No updates to share at the moment, but I'll try to make time for this issue soon. Have you considered capturing and discarding the output with |
Given any type of content, output from the deployment task is emitted to console, even with ---
title: "Python syntax"
---
```{python}
1 + 1 +
``` ---
title: "R syntax"
---
```{r}
1 + 1 +
``` ---
title: "Python error"
---
```{python}
raise Exception("whoops")
``` ---
title: "R error"
---
```{r}
stop("hammer time")
``` The R syntax and error examples were deployed as qmd and Rmd (rendering with Quarto and R Markdown, respectively). When a Quarto + Python document contains an error (any type of rendering error, including a Python syntax error), that error is included in the deployment task output and emitted to console. Part of that output could look like:
When a Quarto + R document or an R Markdown output contains a similar error, that error is also included in the deployment task output and emitted to console. Part of that output could look like (both Quarto+R and R Markdown output is similar):
In addition, a syntax error may also confuse renv while it is scanning for dependencies, producing output like:
When the Quarto + Python document produces an execution error, the error is included in the deployment task output and emitted to the console. Part of this output could look like:
When a Quarto + R or R Markdown document contains a similar runtime error, that error is included in the deployment task output and emitted to the console. Part of that output could look like:
In this case (runtime error, not a syntax error), there is no renv complaint ahead of deployment. This testing indicates that we need two changes:
Other than the renv warnings, there appears to be no difference in output for different types of content. |
Hey,
Due to GDPR regulations and the likes, it is not allowed to show sensitive data in all the IT platforms and applications we use in our organization.
For this reason, we wish to completely turn off the logs from
rsconnect::deployApp()
with for example logLevel="quiet" such that potential sensitive data are not shown in the deployment on our platform. Often traceback error message spit out data used in the code, which might be sensitive data.This seems to work correctly with
knitr
andR
, however withquarto
andpython
we still see the traceback from an error. We wish not to see these logs.Best regards,
Alessandro
The text was updated successfully, but these errors were encountered: