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

Merge branch 'fix' into 'master'

Temporarily disabling the gzip from the logging module

Closes #11

See merge request !19
parents c00cb64d 81fe5783
Branches master
No related tags found
1 merge request!19Temporarily disabling the gzip from the logging module
Pipeline #60052 passed
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
#include <fstream> #include <fstream>
#include <algorithm> #include <algorithm>
#include <boost/filesystem.hpp> #include <boost/filesystem.hpp>
#include <boost/iostreams/filter/gzip.hpp> //#include <boost/iostreams/filter/gzip.hpp>
#include <boost/iostreams/filtering_stream.hpp> #include <boost/iostreams/filtering_stream.hpp>
#include <boost/shared_array.hpp> #include <boost/shared_array.hpp>
#include <boost/make_shared.hpp> #include <boost/make_shared.hpp>
...@@ -107,8 +107,9 @@ struct FileOutputDevice: public bob::core::OutputDevice { ...@@ -107,8 +107,9 @@ struct FileOutputDevice: public bob::core::OutputDevice {
m_file = boost::make_shared<std::ofstream>(filename.c_str(), mode); 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. //output file with the filtering stream.
if (is_dot_gz(filename)) // TODO: Tiago disabled this
m_ostream->push(boost::iostreams::basic_gzip_compressor<>()); //if (is_dot_gz(filename))
// m_ostream->push(boost::iostreams::basic_gzip_compressor<>());
m_ostream->push(*m_file); 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