clean up logging

This commit is contained in:
Emil Lerch 2025-12-18 17:46:21 -08:00
parent a7721ff959
commit 662e0c5e33
Signed by: lobo
GPG key ID: A7B62D657EF764F8

View file

@ -18,14 +18,14 @@ pub fn main() !void {
const cfg = try config.Config.load(allocator);
defer cfg.deinit(allocator);
std.log.info("wttr starting on {s}:{d}\n", .{ cfg.listen_host, cfg.listen_port });
std.log.info("Cache size: {d}\n", .{cfg.cache_size});
std.log.info("Cache dir: {s}\n", .{cfg.cache_dir});
std.log.info("GeoLite2 path: {s}\n", .{cfg.geolite_path});
std.log.info("wttr starting on {s}:{d}", .{ cfg.listen_host, cfg.listen_port });
std.log.info("Cache size: {d}", .{cfg.cache_size});
std.log.info("Cache dir: {s}", .{cfg.cache_dir});
std.log.info("GeoLite2 path: {s}", .{cfg.geolite_path});
if (cfg.geocache_file) |f| {
std.log.info("Geocache file: {s}\n", .{f});
std.log.info("Geocache file: {s}", .{f});
} else {
std.log.info("Geocache: in-memory only\n", .{});
std.log.info("Geocache: in-memory only", .{});
}
// Ensure GeoLite2 database exists