Skip to content

Commit 3324adb

Browse files
committed
0.7
1 parent ee5cdf8 commit 3324adb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/AMQPClient.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ module AMQPClient
33

44
using Compat
55
import Base: write, read, read!, close, convert, show, isopen
6-
6+
@static if VERSION >= v"0.7.0-DEV.4442"
7+
using Sockets
8+
end
79
const DEBUG = false
810

911
if !isdefined(Base, Symbol("@debug"))
@@ -13,7 +15,7 @@ macro debug(s)
1315
end
1416
else
1517
# 0.7: use builtin logging by enabling following statement
16-
# Base.CoreLogging.global_logger(Base.CoreLogging.SimpleLogger(STDERR, Base.CoreLogging.Debug))
18+
# using Logging; Logging.global_logger(Logging.ConsoleLogger(stderr, Logging.Debug))
1719
macro debug(s)
1820
esc(:(DEBUG && Base.@debug($s)))
1921
end

0 commit comments

Comments
 (0)