Revert "Print console messages to dlog" 57/172357/2
authorjaekuk lee <juku1999@samsung.com>
Tue, 13 Mar 2018 10:43:22 +0000 (10:43 +0000)
committerjaekuk lee <juku1999@samsung.com>
Tue, 13 Mar 2018 10:43:28 +0000 (10:43 +0000)
This reverts commit 5b05d606f8ebfa38cb35175a8d585e6e38632c39.

Change-Id: Iaba35a5b7b43771acf378a743995f6e25a25ca12

atom/browser/api/atom_api_pwrt.cc
atom/browser/api/atom_api_pwrt.h
lib/browser/init.js

index e8a75a6..e249288 100644 (file)
@@ -7,7 +7,6 @@
 #include "atom/common/node_includes.h"
 #include "tizen/common/application_data.h"
 #include "tizen/common/command_line.h"
-#include <dlog.h>
 
 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> 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
index 647a5ae..ac466d7 100644 (file)
@@ -19,7 +19,6 @@ class PWRT : public mate::TrackableObject<PWRT> {
   std::string GetMessage();
   std::string GetPath();
   bool isTizenWebApp();
-  void Log(const std::string& message);
 
  protected:
   explicit PWRT(v8::Isolate* isolate);
index 308dde7..b9fe447 100644 (file)
@@ -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.