Project

General

Profile

Bug #17749

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

Added by Zach Huntington-Meath almost 2 years ago. Updated 4 months ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
foreman-debug
Target version:
Difficulty:
Triaged:
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

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 (diff)
Added by Anurag Patel over 1 year 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 over 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 over 1 year ago

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

#3 Updated by Anonymous over 1 year ago

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

#4 Updated by Dominic Cleal over 1 year ago

  • Assignee changed from Lukas Zapletal to Anurag Patel

#5 Updated by Marek Hulán over 1 year ago

  • Legacy Backlogs Release (now unused) set to 240

Also available in: Atom PDF