From 72cfc12a8dba3d25dd14b306f7c727444a8e06ce Mon Sep 17 00:00:00 2001 From: Simon Li Date: Sun, 22 Oct 2023 19:20:16 +0100 Subject: [PATCH] rstudio: log-level info to stderr --- repo2docker/buildpacks/r.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/repo2docker/buildpacks/r.py b/repo2docker/buildpacks/r.py index 742638840..ddc18ed37 100644 --- a/repo2docker/buildpacks/r.py +++ b/repo2docker/buildpacks/r.py @@ -339,6 +339,15 @@ def get_build_scripts(self): echo "r-cran-repos=${{EXPANDED_CRAN_MIRROR_URL}}" > /etc/rstudio/rsession.conf """, ), + ( + "root", + # Configure log-level and send to stderr + # Set log-level=debug to investigate problems + # https://docs.posit.co/ide/server-pro/server_management/logging.html + rf""" + printf '[*]\nlog-level=info\nlogger-type=stderr\n' > /etc/rstudio/logging.conf + """, + ), ( "${NB_USER}", # Install a pinned version of devtools, IRKernel and shiny