Removed use of java.util.Logging
This commit is contained in:
Родитель
f44884f5c4
Коммит
71ff30c4dd
|
@ -16,11 +16,11 @@ import java.net.URL;
|
||||||
import java.security.interfaces.RSAPublicKey;
|
import java.security.interfaces.RSAPublicKey;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.logging.Level;
|
import org.slf4j.Logger;
|
||||||
import java.util.logging.Logger;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
class OpenIdMetadata {
|
class OpenIdMetadata {
|
||||||
private static final Logger LOGGER = Logger.getLogger( OpenIdMetadata.class.getName() );
|
private static final Logger LOGGER = LoggerFactory.getLogger(OpenIdMetadata.class);
|
||||||
|
|
||||||
private String url;
|
private String url;
|
||||||
private long lastUpdated;
|
private long lastUpdated;
|
||||||
|
@ -52,7 +52,7 @@ class OpenIdMetadata {
|
||||||
return IOUtils.toString(keysUrl);
|
return IOUtils.toString(keysUrl);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
String errorDescription = String.format("Failed to load openID config: %s", e.getMessage());
|
String errorDescription = String.format("Failed to load openID config: %s", e.getMessage());
|
||||||
LOGGER.log(Level.WARNING, errorDescription);
|
LOGGER.warn(errorDescription);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -67,7 +67,7 @@ class OpenIdMetadata {
|
||||||
return key;
|
return key;
|
||||||
} catch (JwkException e) {
|
} catch (JwkException e) {
|
||||||
String errorDescription = String.format("Failed to load keys: %s", e.getMessage());
|
String errorDescription = String.format("Failed to load keys: %s", e.getMessage());
|
||||||
LOGGER.log(Level.WARNING, errorDescription);
|
LOGGER.warn(errorDescription);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче