Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 4 files). Show all
Unified · Split
| @@ -70,6 +70,8 @@ static const QString SCRIPT_EXCEPTION_FORMAT = "[UncaughtException] %1 in %2:%3" · 69 unmodified lines | ||
| 70 | 70 | Q_DECLARE_METATYPE(QScriptEngine::FunctionSignature) |
| 71 | 71 | int functionSignatureMetaID = qRegisterMetaType<QScriptEngine::FunctionSignature>(); |
| 72 | 72 | |
| 73 | +Q_LOGGING_CATEGORY(scriptengineScript, "hifi.scriptengine.script") | |
| 74 | + | |
| 73 | 75 | static QScriptValue debugPrint(QScriptContext* context, QScriptEngine* engine){ |
| 74 | 76 | QString message = ""; |
| 75 | 77 | for (int i = 0; i < context->argumentCount(); i++) { |
| @@ -78,7 +80,7 @@ static QScriptValue debugPrint(QScriptContext* context, QScriptEngine* engine){ · 2 unmodified lines | ||
| 78 | 80 | } |
| 79 | 81 | message += context->argument(i).toString(); |
| 80 | 82 | } |
| 81 | − qCDebug(scriptengine).noquote() << "script:print()<<" << message; // noquote() so that \n is treated as newline | |
| 83 | + qCDebug(scriptengineScript).noquote() << "script:print()<<" << message; // noquote() so that \n is treated as newline | |
| 82 | 84 | |
| 83 | 85 | message = message.replace("\\", "\\\\") |
| 84 | 86 | .replace("\n", "\\n") |