Skip to content

Commit

Permalink
route serialization messages to stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
shikokuchuo committed Jan 8, 2024
1 parent 5b18251 commit e35a87b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/daemons.R
Original file line number Diff line number Diff line change
Expand Up @@ -454,9 +454,9 @@ serialization <- function(refhook = list()) {

if (register) {
if (is.list(refhook) && length(refhook) == 2L && is.function(refhook[[1L]]) && is.function(refhook[[2L]]))
cat("mirai serialization functions registered\n", file = stdout()) else
cat("mirai serialization functions registered\n", file = stderr()) else
if (is.null(refhook))
cat("mirai serialization functions cancelled\n", file = stdout()) else
cat("mirai serialization functions cancelled\n", file = stderr()) else
stop(._[["refhook_invalid"]])
register_everywhere(refhook)
}
Expand Down

0 comments on commit e35a87b

Please sign in to comment.