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

Debbugs page

Simon Josefsson wrote 4 years ago
(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-----

Ludovic Courtès wrote 4 years ago
(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’.
藍挺瑋 wrote 4 years ago
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?'.
Ludovic Courtès wrote 4 years ago
(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
You may also tag this issue. See list of standard tags. For example, to set the confirmed and easy tags
mumi command -t +confirmed -t +easy
Or, remove the moreinfo tag and set the help tag
mumi command -t -moreinfo -t +help