Skip to content

Question : logs or throwing exceptions ? #847

Description

@AmbroiseS

Question:

Is there a reason we are logging here and other places, instead of throwing an exception ?

I'd be intersted in suppressing logs from InfluxDb but i still want to be able to know what kind of connection error I get.

Is it too expensive to throw exceptions?

Best regards

   @Nullable
   public Ready ready() {
       Call<Ready> call = this.readyService.getReady((String)null);
       try {
           return (Ready)this.execute(call);
       } catch (InfluxException e) {
           LOG.log(Level.WARNING, "The exception occurs during check instance readiness", e);
           return null;
       }
   }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions