@@ -297,8 +297,13 @@ func (m mirrorMessage) String() string {
297
297
if m .EventTime != "" {
298
298
msg = console .Colorize ("Time" , fmt .Sprintf ("[%s] " , m .EventTime ))
299
299
}
300
- if m .EventType == notification .ObjectRemovedDelete {
300
+ switch m .EventType {
301
+ case notification .ObjectRemovedDelete :
301
302
return msg + "Removed " + console .Colorize ("Removed" , fmt .Sprintf ("`%s`" , m .Target ))
303
+ case notification .ObjectRemovedDeleteMarkerCreated :
304
+ return msg + "Removed (Delete Marker)" + console .Colorize ("Removed" , fmt .Sprintf ("`%s`" , m .Target ))
305
+ case notification .ILMDelMarkerExpirationDelete :
306
+ return msg + "Removed (ILM)" + console .Colorize ("Removed" , fmt .Sprintf ("`%s`" , m .Target ))
302
307
}
303
308
if m .EventTime == "" {
304
309
return console .Colorize ("Mirror" , fmt .Sprintf ("`%s` -> `%s`" , m .Source , m .Target ))
@@ -722,7 +727,9 @@ func (mj *mirrorJob) watchMirrorEvents(ctx context.Context, events []EventInfo)
722
727
mj .parallel .queueTask (func () URLs {
723
728
return mj .doMirrorWatch (ctx , targetPath , tgtSSE , mirrorURL , event )
724
729
}, mirrorURL .SourceContent .Size )
725
- } else if event .Type == notification .ObjectRemovedDelete {
730
+ } else if event .Type == notification .ObjectRemovedDelete ||
731
+ event .Type == notification .ObjectRemovedDeleteMarkerCreated ||
732
+ event .Type == notification .ILMDelMarkerExpirationDelete {
726
733
if targetAlias != "" && strings .Contains (event .UserAgent , uaMirrorAppName + ":" + targetAlias ) {
727
734
// Ignore delete cascading delete events if cyclical.
728
735
continue
0 commit comments