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

fixes: panic in case of zap logger init on windows os #1283

Merged
merged 2 commits into from
Jun 6, 2022

Conversation

Rchanger
Copy link
Contributor

@Rchanger Rchanger commented Jun 3, 2022

No description provided.

@Rchanger Rchanger requested review from a team and bkizer-tenable as code owners June 3, 2022 08:39
@Rchanger Rchanger linked an issue Jun 3, 2022 that may be closed by this pull request
}

// create zap logger
// should we panic here?
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should panic if we cannot create logger, or, propagate error back and exit with error message.

@codecov-commenter
Copy link

Codecov Report

Merging #1283 (5258d6c) into master (7126c48) will decrease coverage by 0.16%.
The diff coverage is 5.26%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1283      +/-   ##
==========================================
- Coverage   77.37%   77.20%   -0.17%     
==========================================
  Files         272      272              
  Lines        7731     7748      +17     
==========================================
  Hits         5982     5982              
- Misses       1390     1406      +16     
- Partials      359      360       +1     
Impacted Files Coverage Δ
pkg/logging/logger.go 56.81% <5.26%> (-35.78%) ⬇️

@Rchanger Rchanger force-pushed the zap_file_panic_fix_window branch from 5258d6c to 201f64c Compare June 3, 2022 13:43
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jun 3, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Contributor

@nasir-rabbani nasir-rabbani left a comment

Choose a reason for hiding this comment

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

LGTM

@Rchanger Rchanger merged commit c729550 into tenable:master Jun 6, 2022
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.

Export Windows files in release using zip extension
4 participants