Skip to content

Commit 89873e7

Browse files
committed
remove pmloglib.Context in js service
:Release Notes: remove pmloglib.Context in js service :Detailed Notes: - Pmloglib.Conext is retired. Replace it to "console.log" :Testing Performed: 1. Install com.example.js.service to target 2. Call js service's method luna-send -n 1 -f luna://com.example.service.js/locale '{}' 3. Check the service's log journalctl | grep com.example.service.js > [com.example.service.js] LOCALE_CALLBACK : get locale response :QA Notes: :Issues Addressed: [PLAT-116182] [webOS OSE] No response from Call JS service's method by passing luna-send command Change-Id: I4c153761293e53e6b543e658d70a796140baa6e2 Reviewed-on: http://gpro.lge.com/c/webosose/samples/+/281892 Tested-by: Youngeun Kim <ye0607.kim@lge.com> Reviewed-by: Youngeun Kim <ye0607.kim@lge.com> Reviewed-by: Jaeduck Oh <nicky.oh@lge.com>
1 parent d7ad665 commit 89873e7

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

js-services/com.example.service.js/com_example_service_js.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
// SPDX-License-Identifier: Apache-2.0
1616

1717
var Service = require('webos-service');
18-
var pmloglib = require('pmloglib');
19-
var context = new pmloglib.Context("exampleJSService");
2018

2119
// Register com.example.service.js
2220
var service = new Service("com.example.service.js");
@@ -31,7 +29,7 @@ service.register("hello", function(message) {
3129
// Call another service
3230
service.register("locale", function(message) {
3331
service.call("luna://com.webos.settingsservice/getSystemSettings", {"key":"localeInfo"}, function(m2) {
34-
context.log(pmloglib.LOG_INFO, "LOCALE_CALLBACK", {"SERVICE_NAME": "exampleJSService"}, "get locale response");
32+
console.log("[com.example.service.js]", "LOCALE_CALLBACK : get locale response");
3533
var response = "You appear to have your locale set to: " + m2.payload.settings.localeInfo.locales.UI;
3634
message.respond({
3735
message: response

0 commit comments

Comments
 (0)