module Net::SSH::Loggable

def lwarn

greater. (Called lwarn to avoid shadowing with Kernel#warn.)
Displays the result of yielding if the log level is Logger::WARN or
def lwarn
  logger.add(Logger::WARN, nil, facility) { yield } if logger && logger.warn?
end