diff --git a/code/ryzom/server/src/entities_game_service/phrase_manager/magic_phrase.cpp b/code/ryzom/server/src/entities_game_service/phrase_manager/magic_phrase.cpp index ef740fb53..e2aa08769 100644 --- a/code/ryzom/server/src/entities_game_service/phrase_manager/magic_phrase.cpp +++ b/code/ryzom/server/src/entities_game_service/phrase_manager/magic_phrase.cpp @@ -1857,7 +1857,7 @@ void CMagicPhrase::setPrimaryTarget( const TDataSetRow &entityRowId ) // virtual void CMagicPhrase::enchantPhrase(CCharacter * user,float successFactor) { H_AUTO(CMagicPhrase_enchantPhrase); - TLogContext_Item_EnchantPhrase(user->getId()); + TLogContext_Item_EnchantPhrase logItemContext(user->getId()); MBEHAV::CBehaviour behav; uint moneyCost = uint( getSabrinaCost() * CristalMoneyFactor ); diff --git a/code/ryzom/server/src/server_share/log_item_gen.cpp b/code/ryzom/server/src/server_share/log_item_gen.cpp index 975b32104..38348ca69 100644 --- a/code/ryzom/server/src/server_share/log_item_gen.cpp +++ b/code/ryzom/server/src/server_share/log_item_gen.cpp @@ -52,7 +52,7 @@ public: CItemDesc() : _NoContextCount(0) { - _LogDefs.resize(34); + _LogDefs.resize(35); { LGS::TLogDefinition &logDef = _LogDefs[0]; @@ -549,6 +549,15 @@ public: logDef.getParams()[1].setType(LGS::TSupportedParamType::spt_entityId); } + + { + LGS::TLogDefinition &logDef = _LogDefs[34]; + + logDef.setLogName("Item_EnchantPhrase"); + logDef.setLogText("Player character crystallizes a spell phrase"); + + logDef.setContext(true); + } // Register the log definitions