mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-11 08:52:06 +00:00
20 lines
574 B
C++
20 lines
574 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
enum class ExternalCommandStderrReaction : uint8_t
|
|
{
|
|
NONE, /// Do nothing.
|
|
LOG, /// Try to log all outputs of stderr from the external command immediately.
|
|
LOG_FIRST, /// Try to log first 1_KiB outputs of stderr from the external command after exit.
|
|
LOG_LAST, /// Same as above, but log last 1_KiB outputs.
|
|
THROW /// Immediately throw exception when the external command outputs something to its stderr.
|
|
};
|
|
|
|
ExternalCommandStderrReaction parseExternalCommandStderrReaction(const std::string & config);
|
|
|
|
}
|