generated from Patagia/template-nix
parent
d8c8b7bb10
commit
ffcea325f6
10 changed files with 67 additions and 15 deletions
agent
|
@ -7,6 +7,7 @@ license = "MPL-2.0"
|
|||
[dependencies]
|
||||
anyhow.workspace = true
|
||||
clap.workspace = true
|
||||
patagia-common = { path = "../common" }
|
||||
progenitor.workspace = true
|
||||
reqwest.workspace = true
|
||||
schemars.workspace = true
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
use anyhow::Result;
|
||||
use clap::Parser;
|
||||
use tokio::time::{sleep, Duration};
|
||||
use tracing_subscriber::prelude::*;
|
||||
|
||||
mod patagia_api;
|
||||
use patagia_common::instrumentation;
|
||||
|
||||
#[derive(Parser, Debug)]
|
||||
#[command(version, about, long_about = None)]
|
||||
|
@ -12,12 +12,7 @@ struct Cli {}
|
|||
#[tokio::main]
|
||||
async fn main() -> Result<()> {
|
||||
let _args = Cli::parse();
|
||||
let fmt_layer = tracing_subscriber::fmt::layer();
|
||||
|
||||
tracing_subscriber::registry()
|
||||
.with(tracing_subscriber::EnvFilter::from_default_env())
|
||||
.with(fmt_layer)
|
||||
.init();
|
||||
let _tracing = instrumentation::init_tracing_subscriber()?;
|
||||
|
||||
tracing::info!("Patagia Agent");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue