From 1e66211336d2c6b42b525a3ddbffdddafac77ac5 Mon Sep 17 00:00:00 2001 From: jaekuk lee Date: Tue, 13 Mar 2018 10:43:22 +0000 Subject: [PATCH] Revert "Print console messages to dlog" This reverts commit 5b05d606f8ebfa38cb35175a8d585e6e38632c39. Change-Id: Iaba35a5b7b43771acf378a743995f6e25a25ca12 --- atom/browser/api/atom_api_pwrt.cc | 9 +-------- atom/browser/api/atom_api_pwrt.h | 1 - lib/browser/init.js | 5 ----- 3 files changed, 1 insertion(+), 14 deletions(-) diff --git a/atom/browser/api/atom_api_pwrt.cc b/atom/browser/api/atom_api_pwrt.cc index e8a75a6..e249288 100644 --- a/atom/browser/api/atom_api_pwrt.cc +++ b/atom/browser/api/atom_api_pwrt.cc @@ -7,7 +7,6 @@ #include "atom/common/node_includes.h" #include "tizen/common/application_data.h" #include "tizen/common/command_line.h" -#include namespace atom { @@ -49,11 +48,6 @@ bool PWRT::isTizenWebApp() { } } -void PWRT::Log(const std::string& message) { - std::string output = "[JS LOG] " + message; - dlog_print(DLOG_INFO, "WRT", output.c_str()); -} - // static mate::Handle PWRT::Create(v8::Isolate* isolate) { LOG(INFO) << "PWRT::Create"; @@ -69,8 +63,7 @@ void PWRT::BuildPrototype( mate::ObjectTemplateBuilder(isolate, prototype->PrototypeTemplate()) .SetMethod("getMessage", &PWRT::GetMessage) .SetMethod("getPath", &PWRT::GetPath) - .SetMethod("isTizenWebApp", &PWRT::isTizenWebApp) - .SetMethod("log", &PWRT::Log); + .SetMethod("isTizenWebApp", &PWRT::isTizenWebApp); } } // namespace api diff --git a/atom/browser/api/atom_api_pwrt.h b/atom/browser/api/atom_api_pwrt.h index 647a5ae..ac466d7 100644 --- a/atom/browser/api/atom_api_pwrt.h +++ b/atom/browser/api/atom_api_pwrt.h @@ -19,7 +19,6 @@ class PWRT : public mate::TrackableObject { std::string GetMessage(); std::string GetPath(); bool isTizenWebApp(); - void Log(const std::string& message); protected: explicit PWRT(v8::Isolate* isolate); diff --git a/lib/browser/init.js b/lib/browser/init.js index 308dde7..b9fe447 100644 --- a/lib/browser/init.js +++ b/lib/browser/init.js @@ -42,11 +42,6 @@ if (process.platform === 'win32') { process.stdout.write = process.stderr.write = streamWrite } -let {pwrt} = require('electron'); -console.log = console.error = console.warn = function(...args) { - pwrt.log(util.format(...args)); -}; - // Don't quit on fatal error. process.on('uncaughtException', function (error) { // Do nothing if the user has a custom uncaught exception handler. -- 2.7.4