Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
Zipr Toolchain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open Source Software
Zipr Toolchain
Commits
3a7c7178
Commit
3a7c7178
authored
6 years ago
by
Jason Hiser
Browse files
Options
Downloads
Patches
Plain Diff
revised thanos to better redirect I/O from steps
Former-commit-id: 8e84822c32f3ba58464b9ea161700d23b78ba9b1
parent
57233840
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/thanos/thanos.cpp
+7
-2
7 additions, 2 deletions
tools/thanos/thanos.cpp
with
7 additions
and
2 deletions
tools/thanos/thanos.cpp
+
7
−
2
View file @
3a7c7178
...
...
@@ -74,13 +74,18 @@ int main(int argc, char* argv[])
real_cerr
=&
my_real_cerr
;
real_cout
=&
my_real_cout
;
thanos_log
.
open
(
"logs/thanos.log"
,
ofstream
::
out
);
thanos_log
.
open
(
"logs/thanos.log"
,
ofstream
::
out
|
ofstream
::
app
);
if
(
!
thanos_log
)
{
cerr
<<
"Cannot open logs/thanos.log"
<<
endl
;
exit
(
1
);
}
// catch any misc stuff to the thanos log
cout
.
rdbuf
(
thanos_log
.
rdbuf
());
cerr
.
rdbuf
(
thanos_log
.
rdbuf
());
// get plugins
auto
argv_iter
=
1
;
while
(
true
)
...
...
@@ -302,7 +307,7 @@ int ThanosPlugin_t::executeStep(TransformStep_t& the_step, const bool are_debugg
*
real_cout
<<
"Done. Command failed! ***************************************"
<<
endl
;
if
(
!
step_optional
)
{
*
real_cout
<<
"ERROR: The "
<<
the_step
.
getStepName
()
<<
" step is necessary, but failed. Exiting early."
<<
endl
;
*
real_cout
<<
"ERROR: The "
<<
the_step
.
getStepName
()
<<
" step is necessary, but
options parsing
failed. Exiting early."
<<
endl
;
}
return
parse_retval
;
}
...
...
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