Skip to content

Commit a9cb57f

Browse files
committed
refactor: remove error log in some api
1 parent ed60b8f commit a9cb57f

File tree

3 files changed

+0
-9
lines changed

3 files changed

+0
-9
lines changed

src/legacy/api/DeviceAPI.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ void DeviceClass::setPlayer(Player* player) {
4343
try {
4444
id = player->getOrCreateUniqueID();
4545
} catch (...) {
46-
lse::getSelfPluginInstance().getLogger().error("Fail in DeviceClass::setPlayer");
47-
ll::error_utils::printCurrentException(lse::getSelfPluginInstance().getLogger());
48-
LOG_ERROR_WITH_SCRIPT_INFO();
4946
isValid = false;
5047
}
5148
}

src/legacy/api/EntityAPI.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,6 @@ void EntityClass::set(Actor* actor) {
211211
try {
212212
id = actor->getOrCreateUniqueID();
213213
} catch (...) {
214-
lse::getSelfPluginInstance().getLogger().error("Fail in EntityClass::set");
215-
ll::error_utils::printCurrentException(lse::getSelfPluginInstance().getLogger());
216-
LOG_ERROR_WITH_SCRIPT_INFO();
217214
isValid = false;
218215
}
219216
}

src/legacy/api/PlayerAPI.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -651,9 +651,6 @@ void PlayerClass::set(Player* player) {
651651
try {
652652
id = player->getOrCreateUniqueID();
653653
} catch (...) {
654-
lse::getSelfPluginInstance().getLogger().error("Fail in PlayerClass::set");
655-
ll::error_utils::printCurrentException(lse::getSelfPluginInstance().getLogger());
656-
LOG_ERROR_WITH_SCRIPT_INFO();
657654
isValid = false;
658655
}
659656
}

0 commit comments

Comments
 (0)