clean up logging
This commit is contained in:
parent
a7721ff959
commit
662e0c5e33
1 changed files with 6 additions and 6 deletions
12
src/main.zig
12
src/main.zig
|
|
@ -18,14 +18,14 @@ pub fn main() !void {
|
||||||
const cfg = try config.Config.load(allocator);
|
const cfg = try config.Config.load(allocator);
|
||||||
defer cfg.deinit(allocator);
|
defer cfg.deinit(allocator);
|
||||||
|
|
||||||
std.log.info("wttr starting on {s}:{d}\n", .{ cfg.listen_host, cfg.listen_port });
|
std.log.info("wttr starting on {s}:{d}", .{ cfg.listen_host, cfg.listen_port });
|
||||||
std.log.info("Cache size: {d}\n", .{cfg.cache_size});
|
std.log.info("Cache size: {d}", .{cfg.cache_size});
|
||||||
std.log.info("Cache dir: {s}\n", .{cfg.cache_dir});
|
std.log.info("Cache dir: {s}", .{cfg.cache_dir});
|
||||||
std.log.info("GeoLite2 path: {s}\n", .{cfg.geolite_path});
|
std.log.info("GeoLite2 path: {s}", .{cfg.geolite_path});
|
||||||
if (cfg.geocache_file) |f| {
|
if (cfg.geocache_file) |f| {
|
||||||
std.log.info("Geocache file: {s}\n", .{f});
|
std.log.info("Geocache file: {s}", .{f});
|
||||||
} else {
|
} else {
|
||||||
std.log.info("Geocache: in-memory only\n", .{});
|
std.log.info("Geocache: in-memory only", .{});
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ensure GeoLite2 database exists
|
// Ensure GeoLite2 database exists
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue