mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
datamotion: snapshot failure diagnostics unhidden (#3666)
Diagnostics are hard when a snapshot fails if a null pointer occurs. This is because no stack trace or location of the error is logged. I.E. 2019-10-21 12:55:00,056 DEBUG [o.a.c.s.m.AncientDataMotionStrategy] (Work-Job-Executor-131:ctx-80420156 job-10033827/job-10033828 ctx-4864e2f5) (logid:21454564) copy snasphot failed: java.lang.NullPointerException
This commit is contained in:
parent
41275ab0ee
commit
95fbe7c55b
@ -564,7 +564,7 @@ public class AncientDataMotionStrategy implements DataMotionStrategy {
|
|||||||
}
|
}
|
||||||
return answer;
|
return answer;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
s_logger.debug("copy snasphot failed: " + e.toString());
|
s_logger.debug("copy snasphot failed: ", e);
|
||||||
if (cacheData != null) {
|
if (cacheData != null) {
|
||||||
cacheMgr.deleteCacheObject(cacheData);
|
cacheMgr.deleteCacheObject(cacheData);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user