blob: 4cfd862b8734f73231e502b6c9255f891ce718d2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#pragma once
#include <string>
namespace DB
{
enum class ExternalCommandStderrReaction
{
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);
}
|