Pretified logging subsystems.

This commit is contained in:
Pedro Pinto committed 2017-12-22 17:44:09 -05:00
1 parent 8ca60dd822
commit a68ff5342c
29 files changed
+103 -106

No files matched your search

+3 -3
View File
@@ -50,7 +50,7 @@ HTTPStream::HTTPStream(const std::string& host, const std::string& path, const s
*this << "\r\n";
if (bad()) {
LOG(MarketData,Error,"Failed to connect to host {}. Error: {}",
LOG(md,Error,"Failed to connect to host {}. Error: {}",
host,error().message() );
bts_assert_msg(!bad(), error().message());
}
@@ -82,7 +82,7 @@ bool download_file_if_newer(const string& host, const string& path, const string
// If our file mtime is newer do not download
if (difftime(modified, st.st_mtime) > 0) {
LOG(MarketData,Info,"Downloading from: {}{}",host,path);
LOG(md,Info,"Downloading from: {}{}",host,path);
ofstream writer(destination.c_str(), ios::out | ios::binary);
if (writer) {
// This removes all '\n' characters
@@ -96,7 +96,7 @@ bool download_file_if_newer(const string& host, const string& path, const string
}
}
else {
LOG(MarketData,Info,"Skipping download as cache is newer");
LOG(md,Info,"Skipping download as cache is newer");
}
return false;