Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Set the YARD logging level to silence warnings #6

Open
dkubb opened this Issue · 0 comments

1 participant

@dkubb
Owner

One way to silence the warnings is to do YARD::Logger.instance.level = YARD::Logger::ERROR before YARD processes the source code. A better approach might be to explicitly provide the logger to YARD so that within the context of the parser it can use the specified logger.

Failing that, do something like:

logger   = YARD::Logger.instance
original = logger.level
begin
  logger.level = YARD::Logger::ERROR
  # ... do stuff with YARD ...
ensure
  logger.level = original
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.