Skip to content

Commit

Permalink
Modify logging level while parsing parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
sinhaharsh committed Feb 23, 2024
1 parent 6a843d5 commit 925dac0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions protocol/imaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -2123,15 +2123,15 @@ def is_valid(self):
"""

if len(self.invalid_parameters) > 0:
logger.error(f'Invalid parameters found : '
f'{self.invalid_parameters}')
logger.warning(f'Invalid parameters found : '
f'{self.invalid_parameters}')
if len(self.unsupported_parameters) > 0:
logger.error(f'Following parameters are not supported yet.'
f' Please raise an issue on GitHub : '
f'{self.unsupported_parameters}')
logger.warning(f'Following parameters are not supported yet.'
f' Please raise an issue on GitHub : '
f'{self.unsupported_parameters}')
if not self.non_empty_flag:
logger.error('None of the parameters found in the JSON file'
'are supported/valid. Please check the JSON file.')
logger.warning('None of the parameters found in the JSON file'
'are supported/valid. Please check the JSON file.')
return self.non_empty_flag


Expand Down

0 comments on commit 925dac0

Please sign in to comment.