Project

General

Profile

Actions

Feature #18

closed
EJ EJ

HOOK-based debug output wrongly appears in the console whereas the binding/service has been started via systemd

Feature #18: HOOK-based debug output wrongly appears in the console whereas the binding/service has been started via systemd

Added by Emmanuel Jubera [SAFT] almost 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Low
Target version:
Start date:
05/18/2022
Due date:
% Done:

0%

Estimated time:
Hardware platform:
Solidrun (aarch64)
OS Affects Version/s:
arz-1.0
OS Fix Version/s:
Labels:

Description

It would be nice to have "HOOK" logs in the system journal instead of the standard output.

[root@localhost ~]# HOOK: [req-000001:b2r/subscribe] BEGIN uid=0=0 gid=0 pid=116                                                                                                                                                             2 label=System id=System
HOOK: [req-000002:ble-sensor/ciss/POC] BEGIN uid=0=0 gid=0 pid=1162 label=System                                                                                                                                                              id=System
HOOK: [req-000001:b2r/subscribe] subscribe(b2r/B2R_CAN:2) -> 0
HOOK: [req-000001:b2r/subscribe] reply[success: 0]
HOOK: [req-000001:b2r/subscribe] END

YB Updated by Yann Bodéré almost 4 years ago Actions #1

  • Assignee changed from Vincent Rubiolo to Marc-Antoine Riou

EJ Updated by Emmanuel Jubera [SAFT] almost 4 years ago Actions #2

  • Priority changed from Normal to Low

Priority changed from Normal to Low.

JB Updated by José Bollo almost 4 years ago Actions #3

Is it possible to have more context? When does it happen? Is there a specific command that produces that output?

VR Updated by Vincent Rubiolo almost 4 years ago Actions #4

Based on our discussions with Emmanuel, the issue is that once the binding is launched via the startup scripts, when a request is done on the binding side, the HOOK debug logs appear on the console and not in the systemd journal.

VR Updated by Vincent Rubiolo almost 4 years ago Actions #5

  • Subject changed from HOOK logs to HOOK-based debug output wrongly appear in the console whereas the binding/service has been started via systemd

VR Updated by Vincent Rubiolo almost 4 years ago Actions #6

  • Subject changed from HOOK-based debug output wrongly appear in the console whereas the binding/service has been started via systemd to HOOK-based debug output wrongly appears in the console whereas the binding/service has been started via systemd

JB Updated by José Bollo over 3 years ago Actions #7

Because it is launched in startup scripts, scripts should be changed to used the command systemd-cat.

Example: afb-binder .... should become systemd-cat --level-prefix=true --identifier=IDENTITY afb-binder ....

JB Updated by José Bollo over 3 years ago Actions #8

  • Status changed from New to Submitter feedback needed

EJ Updated by Emmanuel Jubera [SAFT] over 3 years ago Actions #9

  • Status changed from Submitter feedback needed to Resolved

Okay, also HOOK logs appear in the system journal when a service is used to launch the application.

SD Updated by Sebastien Douheret [IoT.bzh] over 3 years ago Actions #10

  • OS Affects Version/s arz-1.0.0 added

SD Updated by Sebastien Douheret [IoT.bzh] over 3 years ago Actions #11

  • OS Affects Version/s arz-1.0 added
  • OS Affects Version/s deleted (arz-1.0.0)

EJ Updated by Emmanuel Jubera [SAFT] over 3 years ago Actions #12

  • Assignee changed from Marc-Antoine Riou to Emmanuel Jubera [SAFT]

EJ Updated by Emmanuel Jubera [SAFT] over 3 years ago Actions #13

  • Status changed from Resolved to Closed
Actions

Also available in: PDF Atom