Fixed the logger.

This commit is contained in:
2025-07-27 23:50:13 -07:00
parent 73f7ec1a8d
commit 46184df89c
2 changed files with 11 additions and 11 deletions

View File

@@ -75,12 +75,12 @@ namespace ehs
{
}
Log::Log(LogType type, const std::initializer_list<Str_8> &tags, const UInt_64 code, Str_8 msg)
: type(type), tags(tags.size()), code(code), msg((Str_8&&)msg)
Log::Log(LogType type, const Str_8 &tags, const UInt_64 code, Str_8 msg)
: type(type), code(code), msg((Str_8&&)msg)
{
UInt_64 i = 0;
for (auto v = tags.begin(); v != tags.end(); ++v)
this->tags[i++] = *v;
const Vector<Str_8> tmpTags = tags.Split(", ");
this->tags = Array<Str_8>(&tmpTags[0], tmpTags.Size());
}
Log::Log(LogType type, Array<Str_8> tags, const UInt_64 code, Str_8 msg)