// Warnings returns any warnings generated if given in the response from Cassandra.
//
// This is only available starting with CQL Protocol v4.
974714
func (iter *Iter) Warnings() []string {
	if iter.framer != nil {
		return iter.framer.header.warnings
	}
	return nil
}
1009899
func (l *Logger) Warn(args ...interface{}) {
	kitlevel.Warn(l.Log).Log(args...)
}
686985
func Warn(logger log.Logger) log.Logger {
	return log.WithPrefix(logger, Key(), WarnValue())
}
1018580
func (s *logger) Warn(description string, keysAndValues ...interface{}) {
	s.warn(1, description, keysAndValues...)
}
966831
func (r *Result) PrintWarnings(out io.Writer) {
	if len(r.Warnings) == 0 {
		return
	}
	fmt.Fprintf(out, strings.Join(r.Warnings, "\n")+"\n")
}
27211
func Warn(arg0 interface{}, args ...interface{}) error {
	const (
		lvl = WARNING
	)
	switch first := arg0.(type) {
	case string:
		// Use the string as a format string
		Global.intLogf(lvl, first, args...)
		return errors.New(fmt.Sprintf(first, args...))
	case func() string:
		// Log the closure (no other arguments used)
		str := first()
		Global.intLogf(lvl, "%s", str)
		return errors.New(str)
	default:
		// Build a format string so that it will be similar to Sprint
		Global.intLogf(lvl, fmt.Sprint(first)+strings.Repeat(" %v", len(args)), args...)
		return errors.New(fmt.Sprint(first) + fmt.Sprintf(strings.Repeat(" %v", len(args)), args...))
	}
	return nil
}
962651
func (l Levels) Warn() log.Logger {
	return log.WithPrefix(l.logger, l.levelKey, l.warnValue)
}
1181482
func (s *stream) Warn(format string, args ...interface{}) {
	s.log.output(s.quiet, &line{"", s.log.format(s.timestamps, warn, format, args), s})
}
745495
func (g *GRPCLogger) Warning(args ...interface{}) {
	args = append([]interface{}{"[WARN] "}, args...)
	g.l.Print(args...)
}
179597
func (g *group) Warn(format string, args ...interface{}) {
	g.addLine("", warn, format, args)
}
217201
func (l *Logger) Warn(msg string) error {
	return l.logMsg(nil, LEVEL_WARN, msg)
}
969771
func Warn(msg string, ctx ...interface{}) {
	metrics.GetOrRegisterCounter("warn", nil).Inc(1)
	l.Output(msg, l.LvlWarn, CallDepth, ctx...)
}
908053
func Warn(v ...interface{}) {
	if std.Level >= WarnLevel {
		std.Logger.Print(WarnLevel.String() + fmt.Sprint(v...))
	}
}
1226954
func (c *ChaincodeLogger) Warningf(format string, args ...interface{}) {
	c.logger.Warningf(format, args...)
}
1113594
func (l *Logger) Warn(v ...interface{}) {
	if l.Level >= WarnLevel {
		l.Logger.Print(WarnLevel.String() + fmt.Sprint(v...))
	}
}
999755
func (logger *Logger) Warningf(m string, args ...interface{}) {
	logger.log(WARNING, m, args...)
}
736359
func (l *Log) Warning(eid uint32, msg string) error {
	return l.report(winapi.EVENTLOG_WARNING_TYPE, eid, msg)
}