You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by jo...@apache.org on 2019/04/04 04:47:03 UTC
[mesos] branch 1.6.x updated: Fixed compile error with a built-in
logrotate module.
This is an automated email from the ASF dual-hosted git repository.
josephwu pushed a commit to branch 1.6.x
in repository https://gitbox.apache.org/repos/asf/mesos.git
The following commit(s) were added to refs/heads/1.6.x by this push:
new 9784e33 Fixed compile error with a built-in logrotate module.
9784e33 is described below
commit 9784e339547eed1b81cfb027bee3cc2583f9b82b
Author: Andrei Budnik <ab...@mesosphere.com>
AuthorDate: Wed Apr 3 21:43:13 2019 -0700
Fixed compile error with a built-in logrotate module.
This patch gets rid of redundant use of `Error` wrapper for an error
message that is passed to EXIT macro. This fixes a compile error on
Mesos versions that do not support output operator for `Error` type.
Review: https://reviews.apache.org/r/70369/
---
src/slave/container_loggers/logrotate.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/slave/container_loggers/logrotate.cpp b/src/slave/container_loggers/logrotate.cpp
index aa894a1..0b0dd86 100644
--- a/src/slave/container_loggers/logrotate.cpp
+++ b/src/slave/container_loggers/logrotate.cpp
@@ -339,7 +339,7 @@ int main(int argc, char** argv)
Try<LogrotateLoggerProcess*> process = LogrotateLoggerProcess::create(flags);
if (process.isError()) {
EXIT(EXIT_FAILURE)
- << Error("Failed to create Logrotate process: " + process.error());
+ << "Failed to create Logrotate process: " << process.error();
}
spawn(process.get());