Skip to content

Commit ccb1149

Browse files
tahinigreenscientist
authored andcommitted
v2: Log the parameters received as debug
When running in debug mode, this allows to see the various parameters sent to the request.
1 parent 9b91783 commit ccb1149

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

connection_scan_algorithm/src/parameters/accessibility_parameters.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include <boost/uuid/string_generator.hpp>
22
#include <boost/algorithm/string.hpp>
33

4+
#include "spdlog/spdlog.h"
45
#include "parameters.hpp"
56
#include "scenario.hpp"
67
#include "point.hpp"
@@ -47,6 +48,8 @@ namespace TrRouting
4748
// TODO Replace manually parsing parameters by a library that does this
4849
for (auto & parameterWithValue : parameters)
4950
{
51+
spdlog::debug(" received parameter {} with value {}", parameterWithValue.first, parameterWithValue.second);
52+
5053
// place coordinates:
5154
if (parameterWithValue.first == "place")
5255
{

connection_scan_algorithm/src/parameters/route_parameters.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include <boost/uuid/string_generator.hpp>
22
#include <boost/algorithm/string.hpp>
33

4+
#include "spdlog/spdlog.h"
45
#include "parameters.hpp"
56
#include "scenario.hpp"
67
#include "point.hpp"
@@ -66,6 +67,8 @@ namespace TrRouting
6667
// TODO Replace manually parsing parameters by a library that does this
6768
for (auto & parameterWithValue : parameters)
6869
{
70+
spdlog::debug(" received parameter {} with value {}", parameterWithValue.first, parameterWithValue.second);
71+
6972
// origin and destination:
7073
if (parameterWithValue.first == "origin")
7174
{

0 commit comments

Comments
 (0)