How to reduce loglevel

15 views
Skip to first unread message

esad ergül

unread,
Dec 6, 2022, 3:25:15 AM12/6/22
to swupdate
Hi,

I am using embedded script in sw-description. I push the update image to the target device via the web server. I started swupdate daemon with different loglevels. But I couldn't manage to remove the lua notifications from the messages. I would like to be able to reduce the log level so that [parser], [lua_dump_table] and [LUAstackDump] notifications no longer appear in messages. How can I do that? 
Thanks in advance.



Best regards,
Esad Ergül

Stefano Babic

unread,
Dec 6, 2022, 5:06:50 AM12/6/22
to esad ergül, swupdate
Hi Esad,

On 06.12.22 09:25, esad ergül wrote:
> Hi,
>
> I am using embedded script in sw-description. I push the update image to
> the target device via the web server. I started swupdate daemon with
> different loglevels. But I couldn't manage to remove the lua
> notifications from the messages.

Well, I like to have it so that I can debug my Lua script in case
something is going wrong.

> I would like to be able to reduce the
> log level so that [parser], [lua_dump_table] and [LUAstackDump]

There is no further levels - it is currently verbose and it cannot be
configured.

We could drop some verbosity or add a way to configure the level inside
sw-description. Something llike a new attribute ("loglevel",
"tracelevel",...), and this can be passed to the Lua machinery to decide
if the tracing functions you reported must be called or not.

> notifications no longer appear in messages. How can I do that?
> Thanks in advance.
>

Best regards,
Stefano Babic

--
=====================================================================
DENX Software Engineering GmbH, Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sba...@denx.de
=====================================================================

esad ergül

unread,
Dec 6, 2022, 5:09:41 PM12/6/22
to swupdate
Hi Stefano,

Yes you are right. Of course it should be possible to debug the Lua scripts:)))
I just wanted to ask if swupdate currently has a configuration that allows me to suppress Lua notifications.
As you suggested it might be useful to be able to reduce the loglevels for lua functions using an attribute in sw-description or in
runtime configuration file (swupdate.cfg).

Best regards,
Esad Ergül

Reply all
Reply to author
Forward
0 new messages