Move logger just after checking if we want to skip it

parent 5440626d
...@@ -650,8 +650,6 @@ class Slapgrid(object): ...@@ -650,8 +650,6 @@ class Slapgrid(object):
computer_partition_id = computer_partition.getId() computer_partition_id = computer_partition.getId()
logger.info('Processing Computer Partition %s...' % computer_partition_id)
# Sanity checks before processing # Sanity checks before processing
# Those values should not be None or empty string or any falsy value # Those values should not be None or empty string or any falsy value
if not computer_partition_id: if not computer_partition_id:
...@@ -663,6 +661,8 @@ class Slapgrid(object): ...@@ -663,6 +661,8 @@ 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
logger.info('Processing Computer Partition %s...' % 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)
# Try to get partition timestamp (last modification date) # Try to get partition timestamp (last modification date)
......
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