Skip to content

Commit 48b83d5

Browse files
committed
Better logging
1 parent e8f17bd commit 48b83d5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/api/server_api.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ auto api_wrapper(void (*api_function)(const httplib::Request&, httplib::Response
7575
return;
7676
}
7777

78+
LOG_F(INFO, "server: API access to {} by ", req.path, req.get_header_value("User-Agent"));
79+
7880
api_function(req, res);
7981
} catch (const budget_exception& e) {
8082
api_error(req, res, std::format("Exception occurred: ", e.message()));

0 commit comments

Comments
 (0)