Reformat exception to better understand the source of the problem (#15597)

* Reformat exception to better understand the source of the problem

Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
7.20.x
Sergii Kabashniuk 2020-01-06 10:30:28 +02:00 committed by GitHub
parent 9173c5d288
commit ca86fcb97d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -530,11 +530,12 @@ public class KubernetesDeployments {
if (happenedAfterWatcherInitialization(podEvent)) {
containerEventsHandlers.forEach(h -> h.handle(podEvent));
}
} catch (ParseException | IllegalArgumentException e) {
} catch (ParseException e) {
LOG.error(
"Failed to parse last timestamp of the event. Cause: {}. Event: {}",
e.getMessage(),
podEvent);
podEvent,
e);
}
}
}