gs_offloader: add logging around marking and pruning directories
am: b8c0fafb20

Change-Id: Ia270cee472aa550a6dba884ae2b77a9ae562582d
diff --git a/site_utils/gs_offloader.py b/site_utils/gs_offloader.py
index a85700e..db072ea 100755
--- a/site_utils/gs_offloader.py
+++ b/site_utils/gs_offloader.py
@@ -244,7 +244,7 @@
     """
     logging.debug('Removing fifo %s', path)
     os.remove(path)
-    logging.debug('Creating marker %s', path)
+    logging.debug('Creating fifo marker %s', path)
     with open(path, 'w') as f:
         f.write('<FIFO>')
 
@@ -270,7 +270,7 @@
     target = os.readlink(path)
     logging.debug('Removing symlink %s', path)
     os.remove(path)
-    logging.debug('Creating marker %s', path)
+    logging.debug('Creating symlink marker %s', path)
     with open(path, 'w') as f:
         f.write('<symlink to %s>' % target)
 
@@ -735,6 +735,7 @@
                                                    job_complete_time)):
             return
         try:
+            logging.debug('Pruning uploaded directory %s', dir_entry)
             shutil.rmtree(dir_entry)
         except OSError as e:
             # The wrong file permission can lead call `shutil.rmtree(dir_entry)`
@@ -813,6 +814,7 @@
 
     @param dirpath: Directory path string.
     """
+    logging.debug('Creating uploaded marker for directory %s', dirpath)
     with open(_get_uploaded_marker_file(dirpath), 'a'):
         pass