Skip to content

Commit

Permalink
feat: avoid logging repeating errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ESCRI11 committed Sep 24, 2024
1 parent a5ef050 commit ef31d0c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions components/app/R/server.R
Original file line number Diff line number Diff line change
Expand Up @@ -1068,6 +1068,19 @@ app_server <- function(input, output, session) {

err_traceback <- paste(err_traceback, collapse = "\n")

# Skip if error is repeated
# Initialize variable as well
if (!exists("err_traceback_prev")) {
err_traceback_prev <<- ""
}
if (err_traceback == err_traceback_prev) {
message("EPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaa")
return()
}

# Save globally last error
err_traceback_prev <<- err_traceback

pgx_name <- NULL
user_email <- auth$email
user_tab <- input$nav
Expand Down

0 comments on commit ef31d0c

Please sign in to comment.