Commit abf4a990 authored by Marco Mariani's avatar Marco Mariani

log to DEBUG only if the partition is not going to be processed

parent 84715cd9
...@@ -543,7 +543,7 @@ class Slapgrid(object): ...@@ -543,7 +543,7 @@ class Slapgrid(object):
(computer_partition_id not in self.computer_partition_filter_list): (computer_partition_id not in self.computer_partition_filter_list):
return return
self.logger.info('Processing Computer Partition %s.' % computer_partition_id) self.logger.debug('Check if %s requires processing...' % computer_partition_id)
instance_path = os.path.join(self.instance_root, computer_partition_id) instance_path = os.path.join(self.instance_root, computer_partition_id)
...@@ -596,7 +596,7 @@ class Slapgrid(object): ...@@ -596,7 +596,7 @@ class Slapgrid(object):
# Check periodicity, i.e if periodicity is one day, partition # Check periodicity, i.e if periodicity is one day, partition
# should be processed at least every day. # should be processed at least every day.
if int(time.time()) <= (last_runtime + periodicity) or periodicity < 0: if int(time.time()) <= (last_runtime + periodicity) or periodicity < 0:
self.logger.info('Partition already up-to-date, skipping.') self.logger.debug('Partition already up-to-date, skipping.')
return return
else: else:
# Periodicity forced processing this partition. Removing # Periodicity forced processing this partition. Removing
...@@ -606,6 +606,7 @@ class Slapgrid(object): ...@@ -606,6 +606,7 @@ class Slapgrid(object):
os.remove(timestamp_path) os.remove(timestamp_path)
self.logger.exception('') self.logger.exception('')
self.logger.info('Processing Computer Partition %s.' % computer_partition_id)
self.logger.info(' Software URL: %s' % software_url) self.logger.info(' Software URL: %s' % software_url)
self.logger.info(' Software path: %s' % software_path) self.logger.info(' Software path: %s' % software_path)
self.logger.info(' Instance path: %s' % instance_path) self.logger.info(' Instance path: %s' % instance_path)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment