We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f76ab65 commit 4898721Copy full SHA for 4898721
src/legacy/api/ScriptAPI.cpp
@@ -34,7 +34,7 @@ Local<Value> ColorLog(const Arguments& args) {
34
CHECK_ARGS_COUNT(args, 1);
35
36
try {
37
- std::string prefix = "";
+ std::string prefix;
38
switch (doHash(args[0].asString().toString())) {
39
case doHash("dk_blue"):
40
prefix = "\x1b[34m";
@@ -88,7 +88,7 @@ Local<Value> ColorLog(const Arguments& args) {
88
std::ostringstream sout;
89
sout << prefix;
90
for (int i = 1; i < args.size(); ++i) PrintValue(sout, args[i]);
91
- sout << "\x1b[0m" << std::endl;
+ sout << "\x1b[0m";
92
getEngineOwnData()->plugin->getLogger().info(sout.str());
93
return Boolean::newBoolean(true);
94
}
0 commit comments