Bug #17749

foreman-debug archive files have confusing extension: .gz.txt

Added by Zach Huntington-Meath over 1 year ago. Updated 11 months ago.

Status:Closed
Priority:Low
Assigned To:Anurag Patel
Category:foreman-debug
Target version:-
Difficulty: Bugzilla link:1374019
Found in release: Pull request:https://github.com/theforeman/foreman/pull/4515
Story points-
Velocity based estimate-
Release1.16.0Release relationshipAuto

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1374019
Certain log files are archived during a foreman-debug run end up as raw txt files in the debug collection but are named:

<filename>.gz.txt

this .gz.txt is confusing to the user as it is hard to determine without actually examining the file .. is it TXT or a gzip archive?

If we are uncompressing these we should name them .txt and drop the '.gz'. If we leave them as archives, drop the .txt

Associated revisions

Revision 9b986c8d
Added by Anurag Patel 11 months ago

Fixes #17749 - Remove confusing .gz.txt extension from logs

Currently .txt extension is appended to log files that are processed
by foreman-debug and added to the debug archive. This is confusing to
the user.

This PR gets rid of the .txt extension, and also removes .gz/.bz2/xz
extension from log files that have been uncompressed.

History

#1 Updated by Lukas Zapletal about 1 year ago

I mean, we should remove GZ, BZIP2 or XZ extensions from the filename instead appending TXT. That is much better.

For regular text files we should keep the filename as is.

#2 Updated by The Foreman Bot 12 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/4515 added

#3 Updated by Anonymous 11 months ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#4 Updated by Dominic Cleal 11 months ago

  • Assigned To changed from Lukas Zapletal to Anurag Patel

#5 Updated by Marek Hulán 11 months ago

  • Release set to 1.16.0

Also available in: Atom PDF