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:45 UTC

[incubator-sdap-ingester] branch collection-manager-events created (now 7d5ad0f)

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

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


      at 7d5ad0f  log all fs events

This branch includes the following new commits:

     new 7d5ad0f  log all fs events

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



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

Posted by ea...@apache.org.
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: