Skip to content

Commit

Permalink
Rest Client changes
Browse files Browse the repository at this point in the history
- moving package
- adding logger #16
  • Loading branch information
Damian Staszewski committed Oct 22, 2017
1 parent 084af4f commit 75305e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.stachu540.hirezapi.util;
package com.github.stachu540.hirezapi.api.rest;

import com.github.stachu540.hirezapi.api.Authentication;
import org.springframework.web.client.RestTemplate;
Expand All @@ -14,7 +14,7 @@ public class RestClient {

public <O extends Object> O request(String endpoint, Class<O> model, String... args) {
String url = authentication.getUrl(endpoint, args);
System.out.println(url);
authentication.getLogger().debug("Request for endpoint url: {}", url);
return rest.getForObject(url, model);
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.stachu540.hirezapi.util;
package com.github.stachu540.hirezapi.api.rest;

import com.github.stachu540.hirezapi.exception.ResponseException;
import org.springframework.http.HttpStatus;
Expand Down

0 comments on commit 75305e9

Please sign in to comment.