Skip to content
This repository has been archived by the owner on Oct 5, 2024. It is now read-only.

Commit

Permalink
Output JSON when running underpass
Browse files Browse the repository at this point in the history
  • Loading branch information
emi420 committed Dec 7, 2023
1 parent 42bf839 commit f79e674
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions src/replicator/replication.cc
Original file line number Diff line number Diff line change
Expand Up @@ -766,22 +766,24 @@ RemoteURL::RemoteURL(const RemoteURL &inr)
void
RemoteURL::dump(void)
{
std::cerr << "\t------" << std::endl;
std::cerr << "\tDomain: " << domain << std::endl;
std::cerr << "\tDatadir: " << datadir << std::endl;
std::cerr << "\tSubpath: " << subpath << std::endl;
std::cerr << "\tURL: " << getURL() << std::endl;
std::cerr << "{" << std::endl;
std::cerr << "\t\"domain\": \"" << domain << "\"," << std::endl;
std::cerr << "\t\"datadir\": \"" << datadir << "\"," << std::endl;
std::cerr << "\t\"subpath\": \"" << subpath << "\"," << std::endl;
std::cerr << "\t\"url\": \"" << getURL() << "\"," << std::endl;
std::map<frequency_t, std::string> freqs;
freqs[replication::minutely] = "minute";
freqs[replication::hourly] = "hour";
freqs[replication::daily] = "day";
freqs[replication::changeset] = "changeset";
std::cerr << "\tFrequency: " << (int)frequency << std::endl;
std::cerr << "\tMajor: " << major << std::endl;
std::cerr << "\tMinor: " << minor << std::endl;
std::cerr << "\tIndex: " << index << std::endl;
std::cerr << "\tFilespec: " << filespec << std::endl;
std::cerr << "\tDestdir: " << destdir << std::endl;
std::cerr << "\t\"frequency\": " << (int)frequency << "," << std::endl;
std::cerr << "\t\"major\": " << major << "," << std::endl;
std::cerr << "\t\"minor\": " << minor << "," << std::endl;
std::cerr << "\t\"index\": " << index << "," << std::endl;
std::cerr << "\t\"filespec\": \"" << filespec << "\"," << std::endl;
std::cerr << "\t\"destdir\": \"" << destdir << "\"" << std::endl;
std::cerr << "}" << std::endl;

}

Planet::Planet(const RemoteURL &url)
Expand Down

0 comments on commit f79e674

Please sign in to comment.