mirror of
https://github.com/corda/corda.git
synced 2024-12-18 20:47:57 +00:00
promote failure to delete to error log level
This commit is contained in:
parent
547e6d9edd
commit
bd9d8dbdbd
@ -84,11 +84,7 @@ public class PodAllocator {
|
||||
if (action == Action.DELETED) {
|
||||
result.complete(resource);
|
||||
String msg = "Successfully deleted job " + job.getMetadata().getName();
|
||||
if (logger instanceof org.gradle.api.logging.Logger) {
|
||||
((org.gradle.api.logging.Logger) logger).lifecycle(msg);
|
||||
} else {
|
||||
logger.info(msg);
|
||||
}
|
||||
logger.info(msg);
|
||||
}
|
||||
}
|
||||
|
||||
@ -96,7 +92,7 @@ public class PodAllocator {
|
||||
public void onClose(KubernetesClientException cause) {
|
||||
String message = "Failed to delete job " + job.getMetadata().getName();
|
||||
if (logger instanceof org.gradle.api.logging.Logger) {
|
||||
((org.gradle.api.logging.Logger) logger).quiet(message);
|
||||
((org.gradle.api.logging.Logger) logger).error(message);
|
||||
} else {
|
||||
logger.info(message);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user