ANSI sequences in unattended-upgrades.log?

  • Open
  • quality assurance status badge
Details
3 participants
  • ???
  • Ludovic Courtès
  • Simon Josefsson
Owner
unassigned
Submitted by
Simon Josefsson
Severity
normal
S
S
Simon Josefsson wrote on 1 Dec 2020 10:00
(address . bug-guix@gnu.org)
875z5ldhpk.fsf@latte.josefsson.org
Hi! The unattended-upgrades.log file is quite unreadable due to ANSI
sequences. Probably use of them should be disabled when output is a log
file?

/Simon
-----BEGIN PGP SIGNATURE-----

iHUEARYIAB0WIQSjzJyHC50xCrrUzy9RcisI/kdFogUCX8YGFwAKCRBRcisI/kdF
opweAQCuk8rulEnw2mdvz66KjBbq1uuyesIGoRB8NW3eUJWpYAD+KT8x6FZ/hw3v
c3NoouU2OB2pkg8KDrwePP/BmT2lVwU=
=RBmo
-----END PGP SIGNATURE-----

L
L
Ludovic Courtès wrote on 18 Dec 2020 22:05
(name . Simon Josefsson)(address . simon@josefsson.org)(address . 44985@debbugs.gnu.org)
871rfmakpu.fsf@gnu.org
Hi!

Simon Josefsson <simon@josefsson.org> skribis:

Toggle quote (4 lines)
> Hi! The unattended-upgrades.log file is quite unreadable due to ANSI
> sequences. Probably use of them should be disabled when output is a log
> file?

This is mostly fixed by d613c1771a1986d3c0f1e034155fde41f32f9b8e.

There’s one remaining case where ANSI escapes can go through, that’s the
“updating substitutes” messages. This one requires a bit more work
because it’s written on the daemon side.

Ludo’.
?
ANSI sequences in unattended-upgrades.log?
(address . 44985@debbugs.gnu.org)
adfb2d96758061498a67f0e622c20a49dea81633.camel@gmail.com
The commit d613c1771a1986d3c0f1e034155fde41f32f9b8e seems to break tests/guix-
environment.sh test for Guix 1.3.0 on Guile 2.2.7.

The line which causes the test to fail is:

(when (zero? (modulo (round (* 100. (/ transferred size))) 10))

When Guile 2.2.7 runs this line, it fails with the error:

Wrong type (expecting exact integer): 2.0

The error comes from the call to 'zero?'.
L
L
Ludovic Courtès wrote on 18 Jun 2021 11:57
(name . ???)(address . lantw44@gmail.com)(address . 44985@debbugs.gnu.org)
87a6nnh4wf.fsf@gnu.org
Please open a new bug as this does not relate to

Thanks in advance!

Ludo’.
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 44985@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 44985
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch