From 1c64b0658e62b0e1eb1138f863fee8faa160988e Mon Sep 17 00:00:00 2001 From: faramir118 Date: Sun, 29 Jan 2012 23:08:15 +0100 Subject: [PATCH] [11908] Add a pathfinding log-filter --- src/mangosd/mangosd.conf.dist.in | 2 ++ src/shared/Log.cpp | 1 + src/shared/Log.h | 35 ++++++++++++++++---------------- src/shared/revision_nr.h | 2 +- 4 files changed, 22 insertions(+), 18 deletions(-) diff --git a/src/mangosd/mangosd.conf.dist.in b/src/mangosd/mangosd.conf.dist.in index 89e55f916..84d104678 100644 --- a/src/mangosd/mangosd.conf.dist.in +++ b/src/mangosd/mangosd.conf.dist.in @@ -260,6 +260,7 @@ CleanCharacterDB = 1 # LogFilter_VisibilityChanges # LogFilter_Weather # LogFilter_DbStrictedCheck +# LogFilter_Pathfinding # Log filters (active by default) # Default: 1 - not include with any log level # 0 - include in log if log level permit @@ -350,6 +351,7 @@ LogFilter_TransportMoves = 1 LogFilter_VisibilityChanges = 1 LogFilter_Weather = 1 LogFilter_DbStrictedCheck = 1 +LogFilter_Pathfinding = 1 LogFilter_PeriodicAffects = 0 LogFilter_PlayerMoves = 0 LogFilter_SQLText = 0 diff --git a/src/shared/Log.cpp b/src/shared/Log.cpp index 77ff843a4..8921f956e 100644 --- a/src/shared/Log.cpp +++ b/src/shared/Log.cpp @@ -50,6 +50,7 @@ LogFilterData logFilterData[LOG_FILTER_COUNT] = { "db_stricted_check", "LogFilter_DbStrictedCheck", true }, { "ahbot_seller", "LogFilter_AhbotSeller", true }, { "ahbot_buyer", "LogFilter_AhbotBuyer", true }, + { "pathfinding", "LogFilter_Pathfinding", true }, }; enum LogType diff --git a/src/shared/Log.h b/src/shared/Log.h index 818c21779..491ba7b96 100644 --- a/src/shared/Log.h +++ b/src/shared/Log.h @@ -36,25 +36,26 @@ enum LogLevel // bitmask (not forgot update logFilterData content) enum LogFilters { - LOG_FILTER_TRANSPORT_MOVES = 0x0001, // 0 any related to transport moves - LOG_FILTER_CREATURE_MOVES = 0x0002, // 1 creature move by cells - LOG_FILTER_VISIBILITY_CHANGES = 0x0004, // 2 update visibility for diff objects and players - LOG_FILTER_ACHIEVEMENT_UPDATES= 0x0008, // 3 achievement update broadcasts - LOG_FILTER_WEATHER = 0x0010, // 4 weather changes - LOG_FILTER_PLAYER_STATS = 0x0020, // 5 player save data - LOG_FILTER_SQL_TEXT = 0x0040, // 6 raw SQL text send to DB engine - LOG_FILTER_PLAYER_MOVES = 0x0080, // 7 player moves by grid/cell - LOG_FILTER_PERIODIC_AFFECTS = 0x0100, // 8 DoT/HoT apply trace - LOG_FILTER_AI_AND_MOVEGENSS = 0x0200, // 9 AI/movement generators debug output - LOG_FILTER_DAMAGE = 0x0400, // 10 Direct/Area damage trace - LOG_FILTER_COMBAT = 0x0800, // 11 attack states/roll attack results/etc - LOG_FILTER_SPELL_CAST = 0x1000, // 12 spell cast/aura apply/spell proc events - LOG_FILTER_DB_STRICTED_CHECK = 0x2000, // 13 stricted DB data checks output (with possible false reports) for DB devs - LOG_FILTER_AHBOT_SELLER = 0x4000, // 14 Auction House Bot seller part - LOG_FILTER_AHBOT_BUYER = 0x8000, // 15 Auction House Bot buyer part + LOG_FILTER_TRANSPORT_MOVES = 0x000001, // 0 any related to transport moves + LOG_FILTER_CREATURE_MOVES = 0x000002, // 1 creature move by cells + LOG_FILTER_VISIBILITY_CHANGES = 0x000004, // 2 update visibility for diff objects and players + LOG_FILTER_ACHIEVEMENT_UPDATES= 0x000008, // 3 achievement update broadcasts + LOG_FILTER_WEATHER = 0x000010, // 4 weather changes + LOG_FILTER_PLAYER_STATS = 0x000020, // 5 player save data + LOG_FILTER_SQL_TEXT = 0x000040, // 6 raw SQL text send to DB engine + LOG_FILTER_PLAYER_MOVES = 0x000080, // 7 player moves by grid/cell + LOG_FILTER_PERIODIC_AFFECTS = 0x000100, // 8 DoT/HoT apply trace + LOG_FILTER_AI_AND_MOVEGENSS = 0x000200, // 9 AI/movement generators debug output + LOG_FILTER_DAMAGE = 0x000400, // 10 Direct/Area damage trace + LOG_FILTER_COMBAT = 0x000800, // 11 attack states/roll attack results/etc + LOG_FILTER_SPELL_CAST = 0x001000, // 12 spell cast/aura apply/spell proc events + LOG_FILTER_DB_STRICTED_CHECK = 0x002000, // 13 stricted DB data checks output (with possible false reports) for DB devs + LOG_FILTER_AHBOT_SELLER = 0x004000, // 14 Auction House Bot seller part + LOG_FILTER_AHBOT_BUYER = 0x008000, // 15 Auction House Bot buyer part + LOG_FILTER_PATHFINDING = 0x010000, // 16 Pathfinding }; -#define LOG_FILTER_COUNT 16 +#define LOG_FILTER_COUNT 17 struct LogFilterData { diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 29ad89dd0..3a4a71ad4 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "11907" + #define REVISION_NR "11908" #endif // __REVISION_NR_H__