Replace the Error() object with an error() function which takes fmt

formatspecs, making for much cleaner code. Reformatted everything.

This actually happened in multiple steps but then I corrupted my local
repository and I had to recover from the working tree.
This commit is contained in:
dg
2023-05-09 20:59:44 +00:00
parent bfa0846ad0
commit 466c3c34e5
168 changed files with 5722 additions and 5135 deletions

View File

@@ -4,7 +4,6 @@
#include "lib/config.pb.h"
#include "proto.h"
#include "utils.h"
#include "fmt/format.h"
#include <regex>
std::unique_ptr<FluxSink> FluxSink::create(const FluxSinkProto& config)
@@ -30,7 +29,7 @@ std::unique_ptr<FluxSink> FluxSink::create(const FluxSinkProto& config)
return createFl2FluxSink(config.fl2());
default:
Error() << "bad output disk config";
error("bad output disk config");
return std::unique_ptr<FluxSink>();
}
}
@@ -89,5 +88,5 @@ void FluxSink::updateConfigForFilename(
}
}
Error() << fmt::format("unrecognised flux filename '{}'", filename);
error("unrecognised flux filename '{}'", filename);
}