Ahh, there isn’t a form of log.severe which will take the extra argument?

If not, I would propose that we create one. The syntax of its use is a bit cleaner, IMO.



On Mar 12, 2014, at 10:23 AM, Tobi Knaup <notifications@github.com> wrote:

> In src/main/scala/mesosphere/chaos/http/HttpService.scala:
> 
> > @@ -14,7 +15,14 @@ class HttpService @Inject()(val server : Server, val log : Logger) extends Abstr
> >  
> >    def startUp() {
> >      log.fine("Starting up HttpServer.")
> > -    server.start()
> > +    Try(
> > +      server.start()
> > +    ).recoverWith {
> > +      case e: java.net.BindException => {
> > +        log.severe(e.getMessage)
> Because it prints the stack trace, not just the exception message.
> 
> —
> Reply to this email directly or view it on GitHub.
>