Closed vipulg13 closed 1 month ago
v0.3 was a significant update, see https://github.com/daroczig/logger/blob/master/NEWS.md
The related change is that the log
fns now return a logger
object instead of NULL
. I'm not familiar with your backend fn, and if needs to return anything, but to overcome the issue, either return NULL
after calling the log function, or process the logger
object, e.g. use some of its fields (maybe the log message or record).
I'm closing as cannot really help without a MRE, but please reopen and I'll be happy to take a look.
Hello, I have a shiny application, which is making a call to a backend function exposed via Plumber API POST method. In the backend function, I am using logger::log_info() to log certain information. The backend function does its job and the log_info() also successfully makes an entry in the log file. However, the API call fails to send the response body back, which is anyway return() in my case. This eventually causes the application to crash. Upon checking the docker logs, I see the following error: