Use log/journal instead of std::cerr (RIPD-1377):

Change some uses of std::cerr to log or cout.
This commit is contained in:
Mike Ellery
2017-01-06 13:08:08 -08:00
committed by Edward Hennis
parent b3eada1dc2
commit e01f6e7455
10 changed files with 101 additions and 23 deletions

View File

@@ -263,6 +263,9 @@ void Config::setup (std::string const& strConf, bool bQuiet,
void Config::load ()
{
// NOTE: this writes to cerr because we want cout to be reserved
// for the writing of the json response (so that stdout can be part of a
// pipeline, for instance)
if (!QUIET)
std::cerr << "Loading: " << CONFIG_FILE << "\n";