aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorCara Salter <cara@devcara.com>2022-06-09 15:17:17 -0400
committerCara Salter <cara@devcara.com>2022-06-09 15:17:17 -0400
commit03989d646ee3fd74536d420860e9f5bcf58937af (patch)
tree439e8f164d2c4f1a8068b31ce77fa5d2e203b8c8 /src/main.rs
parentb81eaf785286519b9e5b7725cc4d4dd66175a892 (diff)
downloadsolard-03989d646ee3fd74536d420860e9f5bcf58937af.tar.gz
solard-03989d646ee3fd74536d420860e9f5bcf58937af.zip
state: Reboot
Issue #1
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 28036d4..b962764 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -27,7 +27,7 @@ async fn main() {
tracing_subscriber::registry()
.with(tracing_subscriber::EnvFilter::new(
std::env::var("RUST_LOG")
- .unwrap_or_else(|_| "waifud=info,tower_http=debug".into()),
+ .unwrap_or_else(|_| "solard=info,tower_http=debug".into()),
))
.with(tracing_subscriber::fmt::layer())
.init();
@@ -39,6 +39,7 @@ async fn main() {
.route("/planets/:uuid/shutdown", post(handlers::planets::shutdown))
.route("/planets/:uuid/start", post(handlers::planets::start))
.route("/planets/:uuid/pause", post(handlers::planets::pause))
+ .route("/planets/:uuid/reboot", post(handlers::planets::reboot))
.layer( ServiceBuilder::new()
.layer(HandleErrorLayer::new(|error: BoxError| async move {
if error.is::<tower::timeout::error::Elapsed>() {