Skip to content

Commit

Permalink
update debug colors
Browse files Browse the repository at this point in the history
  • Loading branch information
ocervell committed Nov 28, 2024
1 parent f7d3afa commit 96eb40b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions secator/runners/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ def run_validators(self, validator_type, *args, error=True):
name = f'{self.__class__.__name__}.{validator_type}'
fun = self.get_func_path(validator)
if not validator(self, *args):
self.debug('', obj={name + ' [dim yellow]->[/] ' + fun: 'failed'}, id=_id, verbose=True, sub='validators')
self.debug('', obj={name + ' [dim yellow]->[/] ' + fun: '[dim red]failed[/]'}, id=_id, verbose=True, sub='validators') # noqa: E501
doc = validator.__doc__
if error:
message = 'Validator failed'
Expand All @@ -570,7 +570,7 @@ def run_validators(self, validator_type, *args, error=True):
)
self.add_result(error, print=True)
return False
self.debug('', obj={name + ' [dim yellow]->[/] ' + fun: 'success'}, id=_id, verbose=True, sub='validators')
self.debug('', obj={name + ' [dim yellow]->[/] ' + fun: '[dim green]success[/]'}, id=_id, verbose=True, sub='validators')
return True

def register_hooks(self, hooks):
Expand Down

0 comments on commit 96eb40b

Please sign in to comment.