MCPcopy Create free account
hub / github.com/Icinga/icinga2 / OpenObjectsFile

Method OpenObjectsFile

lib/config/configcompilercontext.cpp:19–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17}
18
19void ConfigCompilerContext::OpenObjectsFile(const String& filename)
20{
21 try {
22 m_ObjectsFP = std::make_unique<AtomicFile>(filename, 0600);
23 } catch (const std::exception& ex) {
24 Log(LogCritical, "cli", "Could not create temporary objects file: " + DiagnosticInformation(ex, false));
25 Application::Exit(1);
26 }
27}
28
29void ConfigCompilerContext::WriteObject(const Dictionary::Ptr& object)
30{

Callers 1

ValidateConfigFilesMethod · 0.80

Calls 1

LogClass · 0.85

Tested by

no test coverage detected