peter szemraj commited on
Commit
b97cc67
1 Parent(s): c96b784

move logging to verbose-only

Browse files
Files changed (1) hide show
  1. utils.py +3 -2
utils.py CHANGED
@@ -35,7 +35,8 @@ def postprocess(text: str):
35
  return text
36
 
37
 
38
- def clear(text, **kwargs):
39
  """for use with buttons"""
40
- logging.info(f"clearing {text}")
 
41
  return ""
 
35
  return text
36
 
37
 
38
+ def clear(text, verbose=False, **kwargs):
39
  """for use with buttons"""
40
+ if verbose:
41
+ logging.info(f"Clearing text: {text}")
42
  return ""