MCPcopy
hub / github.com/httpie/cli / warn_legacy_usage

Method warn_legacy_usage

httpie/sessions.py:310–322  ·  view source on GitHub ↗
(self, warning: str)

Source from the content-addressed store, hash-verified

308 return is_anonymous_session(self.session_id)
309
310 def warn_legacy_usage(self, warning: str) -> None:
311 if self.suppress_legacy_warnings:
312 return None
313
314 self.env.log_error(
315 warning,
316 level=LogLevel.WARNING
317 )
318
319 # We don't want to spam multiple warnings on each usage,
320 # so if there is already a warning for the legacy usage
321 # we'll skip the next ones.
322 self.suppress_legacy_warnings = True

Callers 2

pre_processFunction · 0.80
pre_processFunction · 0.80

Calls 1

log_errorMethod · 0.80

Tested by

no test coverage detected