hopefully making things more reproducable
This commit is contained in:
parent
7ba9d476cc
commit
f6cd1e4f18
|
@ -49,7 +49,7 @@ async fn main() -> std::io::Result<()> {
|
||||||
.rotation(Rotation::DAILY)
|
.rotation(Rotation::DAILY)
|
||||||
.filename_prefix("api")
|
.filename_prefix("api")
|
||||||
.filename_suffix("log")
|
.filename_suffix("log")
|
||||||
.build("./tmp")
|
.build("/storage/logs/tfcsite")
|
||||||
.expect("Shouldn't");
|
.expect("Shouldn't");
|
||||||
|
|
||||||
let filter = EnvFilter::builder()
|
let filter = EnvFilter::builder()
|
||||||
|
@ -75,7 +75,7 @@ async fn main() -> std::io::Result<()> {
|
||||||
.with(logfile_layer.with_filter(filter).and_then(stdout_layer));
|
.with(logfile_layer.with_filter(filter).and_then(stdout_layer));
|
||||||
let _ = tracing::subscriber::set_global_default(subscriber).wrap_err("Tracing broked");
|
let _ = tracing::subscriber::set_global_default(subscriber).wrap_err("Tracing broked");
|
||||||
|
|
||||||
std::fs::create_dir_all("./tmp")?;
|
std::fs::create_dir_all("/storage/logs/tfcsite")?;
|
||||||
|
|
||||||
info!("starting HTTP server at http://localhost:4242");
|
info!("starting HTTP server at http://localhost:4242");
|
||||||
|
|
||||||
|
@ -88,7 +88,7 @@ async fn main() -> std::io::Result<()> {
|
||||||
App::new()
|
App::new()
|
||||||
.app_data(data.clone())
|
.app_data(data.clone())
|
||||||
.wrap(TracingLogger::<DomainRootSpanBuilder>::new())
|
.wrap(TracingLogger::<DomainRootSpanBuilder>::new())
|
||||||
.app_data(TempFileConfig::default().directory("./tmp"))
|
.app_data(TempFileConfig::default().directory("/storage/logs/tfcsite"))
|
||||||
.service(mt_form)
|
.service(mt_form)
|
||||||
.service(health_form)
|
.service(health_form)
|
||||||
.service(mt_parent_form)
|
.service(mt_parent_form)
|
||||||
|
|
Loading…
Reference in a new issue