Add HTTP log channel, and make ACHIEVEMENTS a proper one.

This commit is contained in:
Henrik Rydgård
2023-08-25 13:53:46 +02:00
parent 6b89788e6d
commit 6d28ccbd8e
6 changed files with 30 additions and 17 deletions
+2
View File
@@ -10,6 +10,8 @@
namespace http {
Request::Request(RequestMethod method, const std::string &url, const std::string &name, bool *cancelled, ProgressBarMode mode) : method_(method), url_(url), name_(name), progress_(cancelled), progressBarMode_(mode) {
INFO_LOG(HTTP, "HTTP %s request: %s (%s)", RequestMethodToString(method), url.c_str(), name.c_str());
progress_.callback = [=](int64_t bytes, int64_t contentLength, bool done) {
std::string message;
if (!name_.empty()) {