]> git.proxmox.com Git - ceph.git/blame - ceph/src/common/ostream_temp.cc
import quincy beta 17.1.0
[ceph.git] / ceph / src / common / ostream_temp.cc
CommitLineData
9f95a23c
TL
1// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2// vim: ts=8 sw=2 smarttab
3
4#include "common/ostream_temp.h"
5
6OstreamTemp::OstreamTemp(clog_type type_, OstreamTempSink *parent_)
7 : type(type_), parent(parent_)
8{
9}
10
11OstreamTemp::~OstreamTemp()
12{
13 if (ss.peek() != EOF && parent)
14 parent->do_log(type, ss);
15}