Skip to content

Commit 22169d2

Browse files
committed
Add more debug logging
1 parent ccfa86a commit 22169d2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

powerline_taskwarrior/segments.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ class ActiveTaskSegment(TaskwarriorBaseSegment):
8282
def __call__(
8383
self, pl, segment_info, task_alias="task", description_length=40, state="active"
8484
):
85-
self.state = state
8685
self.description_length = description_length
86+
self.state = state
8787

8888
return super(ActiveTaskSegment, self).__call__(pl, segment_info, task_alias)
8989

@@ -114,6 +114,7 @@ def build_segments(self):
114114
},
115115
]
116116
else:
117+
self.pl.debug("No tasks")
117118
return []
118119

119120
def truncate(self, pl, amount, segment, description_length=0, **kwargs):
@@ -141,6 +142,7 @@ def get_task(self):
141142
id_and_description, err = self.execute(self.get_command_parts())
142143

143144
if not err and id_and_description:
145+
self.pl.debug(id_and_description)
144146
return id_and_description.pop(0).split(" ", 1)
145147

146148
def get_command_parts(self):

0 commit comments

Comments
 (0)