mirror of
https://github.com/NathanHandley/mod-ah-bot-plus.git
synced 2026-01-13 01:08:37 +00:00
Improve seller cycle logging when in debug
This commit is contained in:
@@ -875,14 +875,12 @@ void AuctionHouseBot::addNewAuctions(Player* AHBplayer, FactionSpecificAuctionHo
|
|||||||
LOG_INFO("module", "AHSeller: Adding {} Auctions", items);
|
LOG_INFO("module", "AHSeller: Adding {} Auctions", items);
|
||||||
|
|
||||||
if (debug_Out)
|
if (debug_Out)
|
||||||
LOG_ERROR("module", "AHSeller: Current house id is {}", config->GetAHID());
|
LOG_INFO("module", "AHSeller: Current house id is {}", config->GetAHID());
|
||||||
|
|
||||||
// only insert a few at a time, so as not to peg the processor
|
// only insert a few at a time, so as not to peg the processor
|
||||||
|
uint32 itemsGenerated = 0;
|
||||||
for (uint32 cnt = 1; cnt <= items; cnt++)
|
for (uint32 cnt = 1; cnt <= items; cnt++)
|
||||||
{
|
{
|
||||||
if (debug_Out)
|
|
||||||
LOG_ERROR("module", "AHSeller: {} count", cnt);
|
|
||||||
|
|
||||||
uint32 itemID = GetRandomItemIDForListing();
|
uint32 itemID = GetRandomItemIDForListing();
|
||||||
|
|
||||||
// Prevent invalid IDs
|
// Prevent invalid IDs
|
||||||
@@ -948,7 +946,10 @@ void AuctionHouseBot::addNewAuctions(Player* AHBplayer, FactionSpecificAuctionHo
|
|||||||
auctionHouse->AddAuction(auctionEntry);
|
auctionHouse->AddAuction(auctionEntry);
|
||||||
auctionEntry->SaveToDB(trans);
|
auctionEntry->SaveToDB(trans);
|
||||||
CharacterDatabase.CommitTransaction(trans);
|
CharacterDatabase.CommitTransaction(trans);
|
||||||
|
itemsGenerated++;
|
||||||
}
|
}
|
||||||
|
if (debug_Out)
|
||||||
|
LOG_INFO("module", "AHSeller: Added {} items", itemsGenerated);
|
||||||
}
|
}
|
||||||
|
|
||||||
void AuctionHouseBot::addNewAuctionBuyerBotBid(Player* AHBplayer, FactionSpecificAuctionHouseConfig *config)
|
void AuctionHouseBot::addNewAuctionBuyerBotBid(Player* AHBplayer, FactionSpecificAuctionHouseConfig *config)
|
||||||
@@ -956,7 +957,7 @@ void AuctionHouseBot::addNewAuctionBuyerBotBid(Player* AHBplayer, FactionSpecifi
|
|||||||
if (!BuyingBotEnabled)
|
if (!BuyingBotEnabled)
|
||||||
{
|
{
|
||||||
if (debug_Out)
|
if (debug_Out)
|
||||||
LOG_ERROR("module", "AHBuyer: Disabled");
|
LOG_INFO("module", "AHBuyer: Disabled");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user