Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

logs: hide timestamp if the program is run not in TTY #3468

Merged
merged 1 commit into from
Jun 5, 2024
Merged

Conversation

AliceInHunterland
Copy link
Contributor

Close #3358

Copy link

codecov bot commented May 30, 2024

Codecov Report

Attention: Patch coverage is 25.00000% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 86.14%. Comparing base (0b136c1) to head (f48e992).

Files Patch % Lines
cli/options/options.go 25.00% 1 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3468      +/-   ##
==========================================
- Coverage   86.19%   86.14%   -0.06%     
==========================================
  Files         331      331              
  Lines       38470    38473       +3     
==========================================
- Hits        33159    33141      -18     
- Misses       3778     3803      +25     
+ Partials     1533     1529       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@roman-khimov
Copy link
Member

We need this to be dependent on tty.

cli/options/options.go Outdated Show resolved Hide resolved
cli/options/options.go Outdated Show resolved Hide resolved
cli/options/options.go Outdated Show resolved Hide resolved
Copy link
Member

@AnnaShaleva AnnaShaleva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AliceInHunterland, fix the commit message and PR title. It's not "by default".

@AliceInHunterland AliceInHunterland force-pushed the logs branch 2 times, most recently from 4b3ec13 to 673aa30 Compare June 3, 2024 08:48
If the program is run in TTY then logger adds timestamp to its entries.

Close #3358

Signed-off-by: Ekaterina Pavlova <[email protected]>
@AliceInHunterland AliceInHunterland changed the title logs: hide timestamp by default logs: hide timestamp if the program is run not in TTY Jun 3, 2024
Copy link

@532910 532910 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@AnnaShaleva AnnaShaleva merged commit cd525a1 into master Jun 5, 2024
19 of 21 checks passed
@AnnaShaleva AnnaShaleva deleted the logs branch June 5, 2024 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

logs: hide timestamp by default
4 participants