Updated the logging system
This commit is contained in:
@@ -42,7 +42,7 @@ VoiceClient::~VoiceClient() {
|
||||
this->connection = nullptr;
|
||||
|
||||
if(this->flushing_thread)
|
||||
logCritical(0, "Deleting a VoiceClient which should still be hold within the flush thread!");
|
||||
logCritical(this->getServerId(), "Deleting a VoiceClient which should still be hold within the flush thread!");
|
||||
|
||||
memtrack::freed<VoiceClient>(this);
|
||||
}
|
||||
@@ -50,7 +50,7 @@ VoiceClient::~VoiceClient() {
|
||||
void VoiceClient::sendCommand0(const ts::Command &command, bool low, bool direct, std::unique_ptr<threads::Future<bool>> listener) {
|
||||
auto cmd = command.build();
|
||||
if(cmd.empty()) {
|
||||
logCritical("Attempted to send an empty command!");
|
||||
logCritical(this->getServerId(), "{} Attempted to send an empty command!", CLIENT_STR_LOG_PREFIX);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user