blob: c0504f54e05afd9e65dca714339d86337241503d [file] [log] [blame]
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/developer/feedback/crash_reports/info/queue_info.h"
#include <lib/syslog/cpp/macros.h>
namespace feedback {
QueueInfo::QueueInfo(std::shared_ptr<InfoContext> context) : context_(context) {
FX_CHECK(context_);
}
void QueueInfo::LogReport(const std::string& program_name, const std::string& local_report_id) {
context_->InspectManager().AddReport(program_name, local_report_id);
}
void QueueInfo::SetSize(const uint64_t size) { context_->InspectManager().SetQueueSize(size); }
} // namespace feedback