@staticmethod
  def _convert_log_level(level):
    return {'warn': '0', 'info': '1', 'debug': '2'}.get(level, '1')
Convert a given pants log level string into a watchman log level string.
dataset/ETHPy150Open pantsbuild/pants/src/python/pants/pantsd/subsystem/watchman_launcher.py/WatchmanLauncher._convert_log_level