From 0b74f358d578c10b2c8da670293da37f0ffe30e4 Mon Sep 17 00:00:00 2001 From: Tobias Reisinger Date: Tue, 11 Jun 2024 17:47:18 +0200 Subject: [PATCH] Improve config a bit --- api.v1.json | 5 ----- core.pkl | 2 +- src/main.rs | 2 +- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/api.v1.json b/api.v1.json index 318836a..6c057ef 100644 --- a/api.v1.json +++ b/api.v1.json @@ -1076,11 +1076,6 @@ "type": "string", "example": "Garden Controller" }, - "ip": { - "type": "string", - "format": "ipv4", - "example": "224.73.153.12" - }, "active": { "type": "boolean" }, diff --git a/core.pkl b/core.pkl index 628b69f..251d12f 100644 --- a/core.pkl +++ b/core.pkl @@ -1,4 +1,4 @@ -amends "package://emgauwa.app/pkl/emgauwa@0.1.1#/core.pkl" +amends "package://emgauwa.app/pkl/emgauwa@0.2.1#/core.pkl" logging { level = "DEBUG" diff --git a/src/main.rs b/src/main.rs index ffccb96..a8ba53f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -23,7 +23,7 @@ async fn main() -> Result<(), std::io::Error> { let listener = TcpListener::bind(format!("{}:{}", settings.server.host, settings.server.port))?; drop_privileges(&settings.permissions)?; - init_logging(&settings.logging.level)?; + init_logging(&settings.logging)?; let pool_size = 10; let pool = emgauwa_common::db::init(&settings.database, pool_size).await?;