Skip to content
Snippets Groups Projects
Commit 81fe5783 authored by Tiago de Freitas Pereira's avatar Tiago de Freitas Pereira
Browse files

Temporarily disabling the gzip from the logging module

parent c00cb64d
Branches
No related tags found
1 merge request!19Temporarily disabling the gzip from the logging module
Pipeline #60048 passed
......@@ -12,7 +12,7 @@
#include <fstream>
#include <algorithm>
#include <boost/filesystem.hpp>
#include <boost/iostreams/filter/gzip.hpp>
//#include <boost/iostreams/filter/gzip.hpp>
#include <boost/iostreams/filtering_stream.hpp>
#include <boost/shared_array.hpp>
#include <boost/make_shared.hpp>
......@@ -105,10 +105,11 @@ struct FileOutputDevice: public bob::core::OutputDevice {
std::ios_base::openmode mode = std::ios_base::out | std::ios_base::trunc;
if (is_dot_gz(filename)) mode |= std::ios_base::binary;
m_file = boost::make_shared<std::ofstream>(filename.c_str(), mode);
//this second part configures gzip'ing if necessary and associates the
//this second part configures gzip'ing if necessary and associates the
//output file with the filtering stream.
if (is_dot_gz(filename))
m_ostream->push(boost::iostreams::basic_gzip_compressor<>());
// TODO: Tiago disabled this
//if (is_dot_gz(filename))
// m_ostream->push(boost::iostreams::basic_gzip_compressor<>());
m_ostream->push(*m_file);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment