blob: a5546ec698b0cafa6b2802f0b8f575f85fb56074 [file] [log] [blame]
// Copyright 2020 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.
#![warn(clippy::all)]
use anyhow::Error;
use fuchsia_component::server::ServiceFs;
use fuchsia_inspect::{component, health::Reporter};
use futures::StreamExt;
use tracing::info;
#[fuchsia::main]
async fn main() -> Result<(), Error> {
let mut fs = ServiceFs::new();
component::health().set_ok();
inspect_runtime::serve(component::inspector(), &mut fs)?;
info!("This is a syslog message");
info!("This is another syslog message");
fs.take_and_serve_directory_handle()?;
fs.collect::<()>().await;
Ok(())
}