Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
bob
bob.core
Commits
91422d95
Commit
91422d95
authored
3 years ago
by
Tiago de Freitas Pereira
Browse files
Options
Downloads
Plain Diff
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
!19
Temporarily disabling the gzip from the logging module
Pipeline
#60052
passed
3 years ago
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/core/cpp/logging.cpp
+5
-4
5 additions, 4 deletions
bob/core/cpp/logging.cpp
with
5 additions
and
4 deletions
bob/core/cpp/logging.cpp
+
5
−
4
View file @
91422d95
...
@@ -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
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment