Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running example from README #35

Closed
jw3126 opened this issue Nov 8, 2016 · 2 comments · Fixed by #36
Closed

Error running example from README #35

jw3126 opened this issue Nov 8, 2016 · 2 comments · Fixed by #36

Comments

@jw3126
Copy link

jw3126 commented Nov 8, 2016

If I try to run the example from the readme, I get

julia srvr.jl &
ERROR: LoadError: ArgumentError: invalid value for Enum LogLevel: 1
 in enum_argument_error(::Symbol, ::Int32) at ./Enums.jl:27
 in convert(::Type{Logging.LogLevel}, ::Int32) at ./Enums.jl:79
 in (::JuliaWebAPI.#kw##process)(::Array{Any,1}, ::JuliaWebAPI.#process, ::Array{Tuple{Function,Bool},1}, ::String) at ./<missing>:0
 in include_from_node1(::String) at ./loading.jl:488
 in process_options(::Base.JLOptions) at ./client.jl:262
 in _start() at ./client.jl:318

@tanmaykm
Copy link
Member

The default log level specification is broken after kmsquire/Logging.jl#21. Needs a fix here and here

Specifying the log level explicitly can be a work around in the meantime:

# ...
using Logging
process([(testfn1, true), (testfn2, false)], "tcp://127.0.0.1:9999";
        bind=true, log_level=INFO)

@jw3126
Copy link
Author

jw3126 commented Nov 10, 2016

I can reproduce the example now, thanks!

tanmaykm added a commit that referenced this issue Nov 13, 2016
tanmaykm added a commit that referenced this issue Nov 13, 2016
fix getting default log level (fix #35)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants