mirror of
https://github.com/Garmelon/PFERD.git
synced 2023-12-21 10:23:01 +01:00
Rename log.action to log.status
This commit is contained in:
@ -55,7 +55,7 @@ class Log:
|
||||
|
||||
# Whether different parts of the output are enabled or disabled
|
||||
self.output_explain = False
|
||||
self.output_action = True
|
||||
self.output_status = True
|
||||
self.output_report = True
|
||||
|
||||
def _update_live(self) -> None:
|
||||
@ -191,12 +191,12 @@ directly or as a GitHub issue: https://github.com/Garmelon/PFERD/issues/new
|
||||
if self.output_explain:
|
||||
self.print(f" {escape(text)}")
|
||||
|
||||
def action(self, text: str) -> None:
|
||||
def status(self, text: str) -> None:
|
||||
"""
|
||||
Print a status update while crawling. Allows markup.
|
||||
"""
|
||||
|
||||
if self.output_action:
|
||||
if self.output_status:
|
||||
self.print(text)
|
||||
|
||||
def report(self, text: str) -> None:
|
||||
|
Reference in New Issue
Block a user