Skip to content

Commit acdf26f

Browse files
committed
rolling back stderr capturing
1 parent a417ae9 commit acdf26f

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "LiveServer"
22
uuid = "16fef848-5104-11e9-1b77-fb7a48bbb589"
33
authors = ["Jonas Asprion <jonas.asprion@gmx.ch", "Thibaut Lienart <tlienart@me.com>"]
4-
version = "1.2.5"
4+
version = "1.2.6"
55

66
[deps]
77
HTTP = "cd3eb016-35fb-5094-929b-558a96fad6f3"

src/server.jl

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -618,15 +618,6 @@ current directory. (See also [`example`](@ref) for an example folder).
618618
)
619619
end
620620

621-
old_logger = global_logger()
622-
old_stderr = stderr
623-
global_logger(
624-
EarlyFilteredLogger(
625-
log -> log._module !== HTTP.Servers,
626-
global_logger()
627-
)
628-
)
629-
630621
server, port = get_server(host, port, req_handler)
631622
host_str = ifelse(host == string(Sockets.localhost), "localhost", host)
632623
url = "http://$host_str:$port"
@@ -685,11 +676,6 @@ current directory. (See also [`example`](@ref) for an example folder).
685676
reset_ws_interrupt()
686677
println("")
687678
end
688-
# given that LiveServer is interrupted via an InterruptException, we have
689-
# to be extra careful that things are back as they were before, otherwise
690-
# there's a high risk of the disgusting broken pipe error...
691-
redirect_stderr(old_stderr)
692-
global_logger(old_logger)
693679
return nothing
694680
end
695681

0 commit comments

Comments
 (0)