Log project name along with section name

Section names are usually not very descriptive, so let's log the project
name alongside the section name.

Signed-off-by: Christopher Obbard <chris@64studio.com>
pull/20/head
Christopher Obbard 2022-04-14 21:54:53 +01:00
parent 67935a5b0c
commit c0e642d28b
1 changed files with 2 additions and 2 deletions

View File

@ -605,8 +605,8 @@ def autodoist_magic(args, api, label_id, regen_labels_id):
section_type, section_type_changed = get_section_type(
args, section)
if section_type is not None:
logging.debug('Identified \'%s\' as %s type',
section['name'], section_type)
logging.debug('Identified \'%s\'.\'%s\' as %s type',
project['name'], section['name'], section_type)
# Get all items for the section
items = [x for x in project_items if x['section_id']