diff --git a/REQUIRE b/REQUIRE index 685c382..317b7cc 100644 --- a/REQUIRE +++ b/REQUIRE @@ -1,7 +1,7 @@ julia 0.4 ZMQ 0.3.3 JSON -Logging +Logging 0.3.1 HttpCommon HttpServer Compat 0.8.0 diff --git a/src/APIResponder.jl b/src/APIResponder.jl index fe17403..19e7390 100644 --- a/src/APIResponder.jl +++ b/src/APIResponder.jl @@ -177,7 +177,7 @@ function process_async(apispecs::Array, addr::AbstractString=get(ENV,"JBAPI_QUEU process(apispecs, addr; log_level=log_level, bind=bind, nid=nid, async=true) end -function process(apispecs::Array, addr::AbstractString=get(ENV,"JBAPI_QUEUE",""); log_level=Logging.LogLevel(@compat(parse(Int32,get(ENV, "JBAPI_LOGLEVEL", "1")))), +function process(apispecs::Array, addr::AbstractString=get(ENV,"JBAPI_QUEUE",""); log_level=Logging.LogLevel(get(ENV, "JBAPI_LOGLEVEL", "INFO")), bind::Bool=false, nid::AbstractString=get(ENV,"JBAPI_CID",""), async::Bool=false) setup_logging(;log_level=log_level) Logging.debug("queue is at $addr") @@ -212,7 +212,7 @@ function create_responder(apispecs::Array, addr, bind, nid) end function process() - log_level = Logging.LogLevel(@compat(parse(Int32,get(ENV, "JBAPI_LOGLEVEL", "1")))) + log_level = Logging.LogLevel(get(ENV, "JBAPI_LOGLEVEL", "INFO")) setup_logging(;log_level=log_level) Logging.info("Reading api server configuration from environment...")