1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00

Remove debugging abort from jsonpublisher

This commit is contained in:
Michael 2019-04-16 02:21:09 +01:00
parent 3cee3ee3c9
commit fdc4b9c4bd
No known key found for this signature in database
GPG key ID: 2D51757B47E2434C

View file

@ -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';