whitfin / local-cluster

Easy local cluster creation for Elixir to aid in unit testing
MIT License
226 stars 30 forks source link

Added logger level to to start_nodes/2 #4

Closed pggalaviz closed 5 years ago

pggalaviz commented 5 years ago

Adding the -logger argument solves problems from #3, now we get the level we set in our config file.

whitfin commented 5 years ago

@pggalaviz ok I'm glad that it works, but it appears to break on earlier versions of Elixir.

Can you perhaps remove that change and instead try the following out:

rpc.(Application, :ensure_all_started, [ :logger ])
rpc.(Logger, :configure, [ level: Logger.level() ])

You should be able to put it just after the same thing happens for Mix.

pggalaviz commented 5 years ago

Seems it still breaks Elixir 1.2 & 1.3

whitfin commented 5 years ago

@pggalaviz ok, I'll pull it down and take a look at it :)