phosphor-logging: entry() failed parse message.

chunhui.jia chunhui.jia at linux.intel.com
Tue Nov 10 15:27:53 AEDT 2020


The data embedded in your entry() is meta-data.   Use '-overbose' option in journalctl command to print. 

journalctl -ef -overbose
>>
Tue 2020-11-10 12:28:43.472063 UTC [s=93d61b6180db407d8f32924833a6954d;i=10c4;b=0ba0603a97814c2bb3d22f4857b5f964;m=13e4a3855c;t=5b3bfd1cbc915;x=bac5bbc519880cdf]
    _UID=0
    _GID=0
    _CAP_EFFECTIVE=3fffffffff
    _BOOT_ID=0ba0603a97814c2bb3d22f4857b5f964
    _MACHINE_ID=b1d2788fe17541c0ba0363cd0f0aa699
    _HOSTNAME=intel-obmc
    _SYSTEMD_SLICE=system.slice
    _TRANSPORT=journal
    PRIORITY=3
    CODE_FILE=/usr/src/debug/intel-ipmi-oem/0.1+gitAUTOINC+04a38ed10d-r0/recipe-sysroot/usr/include/phosphor-logging/log.hpp
    CODE_LINE=76
    CODE_FUNC=helper_log
    TRANSACTION_ID=4091710023
    SYSLOG_IDENTIFIER=ipmid
    _PID=245
    _COMM=ipmid
    _EXE=/usr/bin/ipmid
    _CMDLINE=ipmid
    _SYSTEMD_CGROUP=/system.slice/phosphor-ipmi-host.service
    _SYSTEMD_UNIT=phosphor-ipmi-host.service
    _SYSTEMD_INVOCATION_ID=62df2ae5590c48a2b79ffe6843c3681c
    MESSAGE=Failed to GetAll
    INTF=xyz.openbmc_project.Inventory.Decorator.Ipmi
    WHAT=sd_bus_call: org.freedesktop.DBus.Error.UnknownInterface: Unknown interface 'xyz.openbmc_project.Inventory.Decorator.Ipmi'.
    PATH=/xyz/openbmc_project/inventory/system/powersupply/SOLUM_CO_IS162F22_PSU1
    _SOURCE_REALTIME_TIMESTAMP=1605011323472063


2020-11-10 

chunhui.jia 



发件人:Thu Ba Nguyen <tbnguyen1985 at gmail.com>
发送时间:2020-11-10 06:35
主题:Re: phosphor-logging: entry() failed parse message.
收件人:"Ramesh I I1"<rameshi1 at in.ibm.com>
抄送:"OpenBMC Maillist"<openbmc at lists.ozlabs.org>

Thanks Ramesh,


But your commands are applied for some messages.
And don't answer my questions.
"Do I need to add any option when building?" to make phosphor-logging print message in entry().


Regards.
Thu Nguyen.








On Mon, Nov 9, 2020 at 11:04 AM Ramesh I I1 <rameshi1 at in.ibm.com> wrote:

Hi Thu Nguyen,

Below link may help you to get more detailed log which you are referring.
https://github.com/openbmc/openbmc/wiki/Debugging-OpenBMC#journalctl

For example:
journalctl -o json-pretty MESSAGE="watchdog: Timed out"

Regards,
Ramesh
----- Original message -----
From: Thu Ba Nguyen <tbnguyen1985 at gmail.com>
Sent by: "openbmc" <openbmc-bounces+rameshi1=in.ibm.com at lists.ozlabs.org>
To: OpenBMC Maillist <openbmc at lists.ozlabs.org>
Cc:
Subject: [EXTERNAL] Re: phosphor-logging: entry() failed parse message.
Date: Sat, Nov 7, 2020 6:11 PM
 

The output in BMC console will be: 
phosphor-watchdog[534]: watchdog: Timed out

Regards.
Thu Nguyen
  
On Sat, Nov 7, 2020 at 7:38 PM Thu Ba Nguyen <tbnguyen1985 at gmail.com> wrote:
Hi, 

In openBmc, We are using phosphor-logging.
When I log:
log<level::INFO>(
"watchdog: Timed out",
entry("ACTION=%s", convertForMessage(action).c_str()),
entry("TIMER_USE=%s", convertForMessage(expiredTimerUse()).c_str()),
entry("TARGET=%s", target->second.c_str()));
The message in entry() is losted.
Do I need to add any option when building?

Thanks.
Thu Nguyen.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20201110/575c7c73/attachment.htm>


More information about the openbmc mailing list