Skip to content

Commit

Permalink
[11908] Add a pathfinding log-filter
Browse files Browse the repository at this point in the history
  • Loading branch information
vermie authored and Schmoozerd committed Feb 6, 2012
1 parent 290b764 commit 0eee556
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 18 deletions.
2 changes: 2 additions & 0 deletions src/mangosd/mangosd.conf.dist.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/shared/Log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
35 changes: 18 additions & 17 deletions src/shared/Log.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11907"
#define REVISION_NR "11908"
#endif // __REVISION_NR_H__

0 comments on commit 0eee556

Please sign in to comment.