Remote Access (rac) too much logs

Hello Toradex team,

I hope you are all doing great!

Hardware:

uname:

  • Linux verdin-imx8mp-14777482 5.15.129-6.4.0+git.67c3153d20ff #1-TorizonCore SMP PREEMPT Wed Sep 27 12:30:36 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux

Images tested:

  • torizon-core-docker-verdin-imx8mp-Tezi_6.4.0+build.5.tar (STABLE Release)

Guest OS:

  • macOS (M1 Pro ARM64)
  • Linux ubuntu (VM x86_64)

Issue:
So first thank you for giving me access to the beta of Remote Access. It’s working great ! I still have one issue, the journalctl logs, the rac write logs every 3 seconds just to tell me that No remote session found for device.

The problem is that the journalctl of other services such as the docker has been wipped for memory reason:

Dec 09 13:53:17 verdin-imx8mp-XXXXXXXXX rac[1383]: [2023-12-09T12:53:17Z INFO ] No remote session found for device
Dec 09 13:53:20 verdin-imx8mp-XXXXXXXXX rac[1383]: [2023-12-09T12:53:20Z INFO ] No remote session found for device
Dec 09 13:53:23 verdin-imx8mp-XXXXXXXXX rac[1383]: [2023-12-09T12:53:23Z INFO ] No remote session found for device
Dec 09 13:53:26 verdin-imx8mp-XXXXXXXXX rac[1383]: [2023-12-09T12:53:26Z INFO ] No remote session found for device
Dec 09 13:53:29 verdin-imx8mp-XXXXXXXXX rac[1383]: [2023-12-09T12:53:29Z INFO ] No remote session found for device
Dec 09 13:53:32 verdin-imx8mp-XXXXXXXXX rac[1383]: [2023-12-09T12:53:32Z INFO ] No remote session found for device
Dec 09 13:53:35 verdin-imx8mp-XXXXXXXXX rac[1383]: [2023-12-09T12:53:35Z INFO ] No remote session found for device
Dec 09 13:53:38 verdin-imx8mp-XXXXXXXXX rac[1383]: [2023-12-09T12:53:38Z INFO ] No remote session found for device
Dec 09 13:53:41 verdin-imx8mp-XXXXXXXXX rac[1383]: [2023-12-09T12:53:41Z INFO ] No remote session found for device
Dec 09 13:53:44 verdin-imx8mp-XXXXXXXXX rac[1383]: [2023-12-09T12:53:44Z INFO ] No remote session found for device
Dec 09 13:53:47 verdin-imx8mp-XXXXXXXXX rac[1383]: [2023-12-09T12:53:47Z INFO ] No remote session found for device
Dec 09 13:53:50 verdin-imx8mp-XXXXXXXXX rac[1383]: [2023-12-09T12:53:50Z INFO ] No remote session found for device
Dec 09 13:53:53 verdin-imx8mp-XXXXXXXXX rac[1383]: [2023-12-09T12:53:53Z INFO ] No remote session found for device
Dec 09 13:53:57 verdin-imx8mp-XXXXXXXXX rac[1383]: [2023-12-09T12:53:57Z INFO ] No remote session found for device

Is there a way to set the log LEVEL to ERROR or WARNING only to avoid this kind of unwanted messages ? I checked the CONFIG_FILE=/etc/rac/client.toml but there is no such thing.

Best regards,
M

Hi,

I hope you are all doing great!

We are doing pretty well :smiley: Hope you’re doing great as well

Is there a way to set the log LEVEL to ERROR or WARNING only to avoid this kind of unwanted messages ? I checked the CONFIG_FILE=/etc/rac/client.toml but there is no such thing.

This is a perfectly sensible request. I brought this up with the team that builds rac and they agree it would be pretty ergonomic to set the log level from the config file, but for the meantime, the nicest solution we could come up with was creating a systemd override like so:

sudo mkdir /etc/systemd/system/remote-access.service.d

and create the override file with vi or nano

torizon@verdin-am62-15133479:~$ cat /etc/systemd/system/remote-access.service.d/override.conf 
[Service]
Environment="RUST_LOG=rac=off"

To modify the log level, just change the off parameter which can be one of the following [0]:

error
warn
info
debug
trace
off (pseudo level to disable all logging for the target)

I hope this is helpful,

Cheers!

[0] env_logger - Rust

1 Like

Hello @leon.tx,

Thank you for your quick response !

I can confirm that you work around works. I’ll update my build to make it work like your example, that would be perfect for now.

Do you think you can update me, or point me where I can follow, whenever the team update the log level in the config file ? To make the code more clean.

Best regards,
M

1 Like

Yep, I’ll add this community thread to the internal ticketing system.

1 Like