Skip to content

Commit

Permalink
Add logging of skipped members
Browse files Browse the repository at this point in the history
  • Loading branch information
Coolthulhu committed Feb 10, 2016
1 parent 5084e52 commit 84533fc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/bonuses.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
#include <sstream>
#include <vector>

#define dbg(x) DebugLog((DebugLevel)(x),D_MAIN) << __FILE__ << ":" << __LINE__ << ": "

// Tokenize
void split( const std::string &s, char delim, std::vector<std::string> &elems )
{
Expand Down Expand Up @@ -154,6 +156,7 @@ void bonus_container::load( JsonObject &jo )

if( skipped_token ) {
// This isn't a set of ma_ modifiers
dbg( D_INFO ) << "bonus_container::load skipping " << member << " - not a generic bonus";
continue;
}

Expand Down

0 comments on commit 84533fc

Please sign in to comment.