@@ -37,7 +37,7 @@ public class CanvasApiFactory {
3737 * @param canvasBaseUrl The base URL used to access your Canvas instance
3838 */
3939 public CanvasApiFactory (String canvasBaseUrl ) {
40- LOG .debug ("Creating Canvas API factory with base URL: " + canvasBaseUrl );
40+ LOG .debug ("Creating Canvas API factory with base URL: {}" , canvasBaseUrl );
4141 this .canvasBaseUrl = canvasBaseUrl ;
4242 this .connectTimeout = DEFAULT_CONNECT_TIMEOUT_MS ;
4343 this .readTimeout = DEFAULT_READ_TIMEOUT_MS ;
@@ -51,6 +51,7 @@ public CanvasApiFactory(String canvasBaseUrl) {
5151 * @param readTimeout Read timeout in milliseconds. If this is too low, longer API queries could time out prematurely
5252 */
5353 public CanvasApiFactory (String canvasBaseUrl , int connectTimeout , int readTimeout ) {
54+ LOG .debug ("Creating Canvas API factory with base URL: {}, connect timeout: {}, read timeout: {}" , canvasBaseUrl , connectTimeout , readTimeout );
5455 this .canvasBaseUrl = canvasBaseUrl ;
5556 this .connectTimeout = connectTimeout ;
5657 this .readTimeout = readTimeout ;
@@ -81,7 +82,7 @@ public <T extends CanvasReader> T getReader(Class<T> type, OauthToken oauthToken
8182 * @return An instance of the requested reader class
8283 */
8384 public <T extends CanvasReader > T getReader (Class <T > type , OauthToken oauthToken , Integer paginationPageSize ) {
84- LOG .debug ("Factory call to instantiate class: " + type .getName ());
85+ LOG .debug ("Factory call to instantiate reader class: {}" , type .getName ());
8586 RestClient restClient = new RefreshingRestClient ();
8687
8788 @ SuppressWarnings ("unchecked" )
@@ -91,7 +92,7 @@ public <T extends CanvasReader> T getReader(Class<T> type, OauthToken oauthToken
9192 throw new UnsupportedOperationException ("No implementation for requested interface found: " + type .getName ());
9293 }
9394
94- LOG .debug ("got class: " + concreteClass );
95+ LOG .debug ("got class: {}" , concreteClass );
9596 try {
9697 Constructor <T > constructor = concreteClass .getConstructor (String .class , Integer .class ,
9798 OauthToken .class , RestClient .class , Integer .TYPE , Integer .TYPE , Integer .class , Boolean .class );
@@ -124,7 +125,7 @@ public <T extends CanvasWriter> T getWriter(Class<T> type, OauthToken oauthToken
124125 * @return An instantiated instance of the requested writer type
125126 */
126127 public <T extends CanvasWriter > T getWriter (Class <T > type , OauthToken oauthToken , Boolean serializeNulls ) {
127- LOG .debug ("Factory call to instantiate class: " + type .getName ());
128+ LOG .debug ("Factory call to instantiate writer class: {}" , type .getName ());
128129 RestClient restClient = new RefreshingRestClient ();
129130
130131 @ SuppressWarnings ("unchecked" )
@@ -134,7 +135,7 @@ public <T extends CanvasWriter> T getWriter(Class<T> type, OauthToken oauthToken
134135 throw new UnsupportedOperationException ("No implementation for requested interface found: " + type .getName ());
135136 }
136137
137- LOG .debug ("got writer class: " + concreteClass );
138+ LOG .debug ("got writer class: {}" , concreteClass );
138139 try {
139140 Constructor <T > constructor = concreteClass .getConstructor (String .class , Integer .class , OauthToken .class ,
140141 RestClient .class , Integer .TYPE , Integer .TYPE , Integer .class , Boolean .class );
0 commit comments