reducing verbosity when loading app

The lines below are what I get in my shinyapps.io logs when someone connects to the app. Just one single connection that initiates an instance.

2023-08-27T08:46:16.367883+00:00 shinyapps[293355]: Container event from container-8493758: start
2023-08-27T08:46:18.367990+00:00 shinyapps[293355]: Running on host: 5a7f3ac282e2
2023-08-27T08:46:18.373932+00:00 shinyapps[293355]: Running as user: uid=10001(shiny) gid=10001(shiny) groups=10001(shiny)
2023-08-27T08:46:18.379791+00:00 shinyapps[293355]: Connect version: 2023.03.0
2023-08-27T08:46:18.385906+00:00 shinyapps[293355]: LANG: C.UTF-8
2023-08-27T08:46:18.391365+00:00 shinyapps[293355]: Working directory: /srv/connect/apps/sari
2023-08-27T08:46:18.396601+00:00 shinyapps[293355]: Using R 4.1.2
2023-08-27T08:46:18.402352+00:00 shinyapps[293355]: R.home(): /opt/R/4.1.2/lib/R
2023-08-27T08:46:18.407562+00:00 shinyapps[293355]: Content will use current R environment
2023-08-27T08:46:18.412882+00:00 shinyapps[293355]: R_LIBS: (unset)
2023-08-27T08:46:18.418158+00:00 shinyapps[293355]: .libPaths(): /opt/R/4.1.2/lib/R/library
2023-08-27T08:46:18.423325+00:00 shinyapps[293355]: shiny version: 1.7.3
2023-08-27T08:46:18.429137+00:00 shinyapps[293355]: httpuv version: 1.6.5
2023-08-27T08:46:18.434483+00:00 shinyapps[293355]: rmarkdown version: (none)
2023-08-27T08:46:18.439807+00:00 shinyapps[293355]: knitr version: (none)
2023-08-27T08:46:18.448692+00:00 shinyapps[293355]: jsonlite version: 1.8.0
2023-08-27T08:46:18.455565+00:00 shinyapps[293355]: RJSONIO version: (none)
2023-08-27T08:46:18.461182+00:00 shinyapps[293355]: htmltools version: 0.5.4
2023-08-27T08:46:18.466510+00:00 shinyapps[293355]: reticulate version: (none)
2023-08-27T08:46:18.471833+00:00 shinyapps[293355]: Using pandoc: /opt/connect/ext/pandoc/2.16
2023-08-27T08:46:18.477483+00:00 shinyapps[293355]: 
2023-08-27T08:46:18.483671+00:00 shinyapps[293355]: Starting R with process ID: '35'
2023-08-27T08:46:18.488978+00:00 shinyapps[293355]: Shiny application starting ...
2023-08-27T08:46:18.494244+00:00 shinyapps[293355]: Running on host: 5a7f3ac282e2
2023-08-27T08:46:18.499525+00:00 shinyapps[293355]: Running as user: uid=10001(shiny) gid=10001(shiny) groups=10001(shiny)
2023-08-27T08:46:18.504782+00:00 shinyapps[293355]: Connect version: 2023.03.0
2023-08-27T08:46:18.509680+00:00 shinyapps[293355]: LANG: C.UTF-8
2023-08-27T08:46:18.514627+00:00 shinyapps[293355]: Working directory: /srv/connect/apps/sari
2023-08-27T08:46:18.519702+00:00 shinyapps[293355]: Using R 4.1.2
2023-08-27T08:46:18.524992+00:00 shinyapps[293355]: R.home(): /opt/R/4.1.2/lib/R
2023-08-27T08:46:18.531693+00:00 shinyapps[293355]: Content will use current R environment
2023-08-27T08:46:18.537172+00:00 shinyapps[293355]: R_LIBS: (unset)
2023-08-27T08:46:18.542632+00:00 shinyapps[293355]: .libPaths(): /opt/R/4.1.2/lib/R/library
2023-08-27T08:46:18.548748+00:00 shinyapps[293355]: shiny version: 1.7.3
2023-08-27T08:46:18.555127+00:00 shinyapps[293355]: httpuv version: 1.6.5
2023-08-27T08:46:18.560526+00:00 shinyapps[293355]: rmarkdown version: (none)
2023-08-27T08:46:18.565960+00:00 shinyapps[293355]: knitr version: (none)
2023-08-27T08:46:18.571838+00:00 shinyapps[293355]: jsonlite version: 1.8.0
2023-08-27T08:46:18.577110+00:00 shinyapps[293355]: RJSONIO version: (none)
2023-08-27T08:46:18.582202+00:00 shinyapps[293355]: htmltools version: 0.5.4
2023-08-27T08:46:18.587859+00:00 shinyapps[293355]: reticulate version: (none)
2023-08-27T08:46:18.593301+00:00 shinyapps[293355]: Using pandoc: /opt/connect/ext/pandoc/2.16
2023-08-27T08:46:18.598302+00:00 shinyapps[293355]: 
2023-08-27T08:46:18.603548+00:00 shinyapps[293355]: Starting R with process ID: '52'
2023-08-27T08:46:18.611283+00:00 shinyapps[293355]: Shiny application starting ...
2023-08-27T08:46:20.367896+00:00 shinyapps[293355]: 
2023-08-27T08:46:20.373621+00:00 shinyapps[293355]: Listening on http://127.0.0.1:34661
2023-08-27T08:46:36.367900+00:00 shinyapps[293355]: Running on host: 5a7f3ac282e2
2023-08-27T08:46:36.374069+00:00 shinyapps[293355]: Running as user: uid=10001(shiny) gid=10001(shiny) groups=10001(shiny)
2023-08-27T08:46:36.379409+00:00 shinyapps[293355]: Connect version: 2023.03.0
2023-08-27T08:46:36.385138+00:00 shinyapps[293355]: LANG: C.UTF-8
2023-08-27T08:46:36.390453+00:00 shinyapps[293355]: Working directory: /srv/connect/apps/sari
2023-08-27T08:46:36.397741+00:00 shinyapps[293355]: Using R 4.1.2
2023-08-27T08:46:36.403026+00:00 shinyapps[293355]: R.home(): /opt/R/4.1.2/lib/R
2023-08-27T08:46:36.407993+00:00 shinyapps[293355]: Content will use current R environment
2023-08-27T08:46:36.412923+00:00 shinyapps[293355]: R_LIBS: (unset)
2023-08-27T08:46:36.418915+00:00 shinyapps[293355]: .libPaths(): /opt/R/4.1.2/lib/R/library
2023-08-27T08:46:36.424595+00:00 shinyapps[293355]: shiny version: 1.7.3
2023-08-27T08:46:36.429897+00:00 shinyapps[293355]: httpuv version: 1.6.5
2023-08-27T08:46:36.435063+00:00 shinyapps[293355]: rmarkdown version: (none)
2023-08-27T08:46:36.440154+00:00 shinyapps[293355]: knitr version: (none)
2023-08-27T08:46:36.447779+00:00 shinyapps[293355]: jsonlite version: 1.8.0
2023-08-27T08:46:36.453435+00:00 shinyapps[293355]: RJSONIO version: (none)
2023-08-27T08:46:36.458735+00:00 shinyapps[293355]: htmltools version: 0.5.4
2023-08-27T08:46:36.463897+00:00 shinyapps[293355]: reticulate version: (none)
2023-08-27T08:46:36.469017+00:00 shinyapps[293355]: Using pandoc: /opt/connect/ext/pandoc/2.16
2023-08-27T08:46:36.479616+00:00 shinyapps[293355]: 
2023-08-27T08:46:36.486076+00:00 shinyapps[293355]: Starting R with process ID: '74'
2023-08-27T08:46:36.499373+00:00 shinyapps[293355]: Shiny application starting ...
2023-08-27T08:46:38.367897+00:00 shinyapps[293355]: 
2023-08-27T08:46:38.373417+00:00 shinyapps[293355]: Listening on http://127.0.0.1:41723 
2023-08-27T08:46:46.385614+00:00 shinyapps[293355]:  >> your code output goes here at last

I already have suppressPackageStartupMessages(suppressMessages(suppressWarnings({}))) surrounding all my library() loads. This removes some messages, but clearly not all.

I would like to have a cleaner and shorter log. Do you know of a better way to reduce the log verbosity when the shinyapps server gets a new connection?

Those logs that run before your app code are surely useful in case of a fault at that earlier stage.
I would think the best strategy for you to easily find the start of your own code is to introduce an expected unique character string, that you can trivially search for when you open the log, and simply read from that point on.

Ok, thanks for the answer. I realize now it has nothing to do with my library() loads.
Just in case, adding the option "quiet" to shinyApp() does not change anything, so maybe it's not what this option is supposed to do.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.