mirror of
https://github.com/openappsec/openappsec.git
synced 2025-06-28 16:41:02 +03:00
Changes to fog working in hybrid mode
This commit is contained in:
parent
6480357fde
commit
61bb2ce4c7
@ -1343,6 +1343,10 @@ private:
|
||||
<< LogField("agentVersion", Version::get());
|
||||
|
||||
auto email = getSettingWithDefault<string>("", "email-address");
|
||||
if (email == "") {
|
||||
auto env_email = getenv("user_email");
|
||||
if (env_email != nullptr) email = env_email;
|
||||
}
|
||||
if (email != "") {
|
||||
dbgInfo(D_ORCHESTRATOR) << "Sending registration data";
|
||||
LogGen(
|
||||
|
@ -256,8 +256,8 @@ private:
|
||||
}
|
||||
|
||||
auto agent_mode = Singleton::Consume<I_AgentDetails>::by<LoggingComp>()->getOrchestrationMode();
|
||||
if (agent_mode == OrchestrationMode::OFFLINE || agent_mode == OrchestrationMode::HYBRID) {
|
||||
dbgInfo(D_REPORT) << "Agent not in online mode, fog stream is no supported";
|
||||
if (agent_mode == OrchestrationMode::OFFLINE) {
|
||||
dbgInfo(D_REPORT) << "Agent in offline mode, fog stream is no supported";
|
||||
} else {
|
||||
addStream(StreamType::JSON_FOG);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user