aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsapier <Sapier at GMX dot net>2014-02-03 20:13:31 +0100
committersapier <Sapier at GMX dot net>2014-02-03 20:13:31 +0100
commitea0def381da04d3704a51b8a31a78ddd0737a06a (patch)
tree1a032c2df424ce0e1152139622336c9224db028c
parent284fc0b88569075187019a1b311312e64e79d937 (diff)
downloadminetest-ea0def381da04d3704a51b8a31a78ddd0737a06a.tar.gz
minetest-ea0def381da04d3704a51b8a31a78ddd0737a06a.tar.bz2
minetest-ea0def381da04d3704a51b8a31a78ddd0737a06a.zip
Remove noisy error messages, prepend "pathfinder: " to pathfinder messages
-rw-r--r--src/pathfinder.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/pathfinder.cpp b/src/pathfinder.cpp
index 3e8a73ac2..d39bdab3a 100644
--- a/src/pathfinder.cpp
+++ b/src/pathfinder.cpp
@@ -51,9 +51,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#define ERROR_TARGET std::cout
#else
#define DEBUG_OUT(a) while(0)
-#define INFO_TARGET infostream
-#define VERBOSE_TARGET verbosestream
-#define ERROR_TARGET errorstream
+#define INFO_TARGET infostream << "pathfinder: "
+#define VERBOSE_TARGET verbosestream << "pathfinder: "
+#define ERROR_TARGET errorstream << "pathfinder: "
#endif
/******************************************************************************/
@@ -263,13 +263,13 @@ std::vector<v3s16> pathfinder::get_Path(ServerEnvironment* env,
path_gridnode& endpos = getIndexElement(EndIndex);
if (!startpos.valid) {
- ERROR_TARGET << "invalid startpos" <<
+ VERBOSE_TARGET << "invalid startpos" <<
"Index: " << PPOS(StartIndex) <<
"Realpos: " << PPOS(getRealPos(StartIndex)) << std::endl;
return retval;
}
if (!endpos.valid) {
- ERROR_TARGET << "invalid stoppos" <<
+ VERBOSE_TARGET << "invalid stoppos" <<
"Index: " << PPOS(EndIndex) <<
"Realpos: " << PPOS(getRealPos(EndIndex)) << std::endl;
return retval;