You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sdap.apache.org by ea...@apache.org on 2020/08/04 22:26:46 UTC

[incubator-sdap-ingester] 01/01: log all fs events

This is an automated email from the ASF dual-hosted git repository.

eamonford pushed a commit to branch collection-manager-events
in repository https://gitbox.apache.org/repos/asf/incubator-sdap-ingester.git

commit 7d5ad0f81671076c1b9d0bf0b2903b993ebbe9ce
Author: Eamon Ford <ea...@gmail.com>
AuthorDate: Tue Aug 4 15:26:17 2020 -0700

    log all fs events
---
 collection_manager/collection_manager/services/CollectionWatcher.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/collection_manager/collection_manager/services/CollectionWatcher.py b/collection_manager/collection_manager/services/CollectionWatcher.py
index 8911806..63dd30c 100644
--- a/collection_manager/collection_manager/services/CollectionWatcher.py
+++ b/collection_manager/collection_manager/services/CollectionWatcher.py
@@ -161,6 +161,11 @@ class _GranuleEventHandler(FileSystemEventHandler):
         self._callback = callback
         self._collections_for_dir = collections_for_dir
 
+    def on_any_event(self, event):
+        super().on_created(event)
+
+        logger.info(f"Collection Watcher received event: {event}")
+
     def on_created(self, event):
         super().on_created(event)
         for collection in self._collections_for_dir: