Skip to content

Commit fea46b2

Browse files
committed
fix(console): remove CONSOLE prefix - unnecessary
1 parent 7c55316 commit fea46b2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

NativeScript/runtime/Console.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ void Console::Init(Local<Context> context) {
3535
}
3636

3737
void Console::LogCallback(const FunctionCallbackInfo<Value>& args) {
38+
// TODO: implement 'forceLog' override option like android has, to force logs in prod if desired
3839
if (!RuntimeConfig.LogToSystemConsole) {
3940
return;
4041
}
@@ -59,8 +60,8 @@ void Console::LogCallback(const FunctionCallbackInfo<Value>& args) {
5960

6061
std::string level = VerbosityToInspectorVerbosity(verbosityLevel);
6162
v8_inspector::V8LogAgentImpl::EntryAdded(msgToLog, level, "", 0);
62-
std::string msgWithVerbosity = "CONSOLE " + verbosityLevelUpper + ": " + msgToLog;
63-
Log("%s", msgWithVerbosity.c_str());
63+
// std::string msgWithVerbosity = "CONSOLE " + verbosityLevelUpper + ": " + msgToLog;
64+
Log("%s", msgToLog.c_str());
6465
}
6566

6667
void Console::AssertCallback(const FunctionCallbackInfo<Value>& args) {

0 commit comments

Comments
 (0)