send to debug
This commit is contained in:
parent
e8c1e6a8f4
commit
15de29f0bb
1 changed files with 3 additions and 4 deletions
|
@ -368,10 +368,9 @@ function discard_input(source::PortAudioSource)
|
||||||
end
|
end
|
||||||
|
|
||||||
function suppress_err(dofunc::Function)
|
function suppress_err(dofunc::Function)
|
||||||
nullfile = @static Sys.iswindows() ? "nul" : "/dev/null"
|
io = IOBuffer()
|
||||||
open(nullfile, "w") do io
|
redirect_stderr(dofunc, io)
|
||||||
redirect_stderr(dofunc, io)
|
@debug String(take!(io))
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function __init__()
|
function __init__()
|
||||||
|
|
Loading…
Reference in a new issue