Merge pull request #521 from michael-loki/remove_abort

Remove debugging abort from jsonpublisher
pull/526/head
Rick V 5 years ago committed by GitHub
commit 812a4045d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -280,13 +280,13 @@ namespace llarp
void
JsonPublisher::directoryPublisher(const nlohmann::json &result,
const fs::path& path)
const fs::path &path)
{
std::ofstream fstream(path.string(), std::ios_base::app);
if(!fstream)
{
std::cerr << "Skipping metrics publish, " << path << " is not a file\n";
abort();
return;
}
fstream << std::setw(0) << result << '\n';

Loading…
Cancel
Save