Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Flinkk8soperator needs Log writer to be passed to Resty #22

Merged
merged 3 commits into from
Jun 11, 2019

Conversation

anandswaminathan
Copy link
Contributor

@anandswaminathan anandswaminathan commented Jun 11, 2019

Flink operator uses https://github.com/go-resty/resty to communicate to Job manager. Resty call logs do not follow the logger settings.

If flytestdlib logger can expose writer, I can pass it in to resty.SetLogger(..)

Alternatively we can expose GetLogger if you think that is better.

@codecov-io
Copy link

codecov-io commented Jun 11, 2019

Codecov Report

Merging #22 into master will decrease coverage by 0.05%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #22      +/-   ##
==========================================
- Coverage   71.12%   71.06%   -0.06%     
==========================================
  Files          51       51              
  Lines        1811     1818       +7     
==========================================
+ Hits         1288     1292       +4     
- Misses        409      412       +3     
  Partials      114      114
Impacted Files Coverage Δ
logger/logger.go 54.26% <0%> (-1.3%) ⬇️
storage/copy_impl.go 83.33% <0%> (+3.33%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4d7533f...c61b0dd. Read the comment docs.

@@ -81,6 +82,11 @@ func getLogger(ctx context.Context) logrus.FieldLogger {
return entry
}

func GetLogWriter(ctx context.Context) *io.PipeWriter {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add docs?

logger/logger.go Outdated Show resolved Hide resolved
Co-Authored-By: Haytham AbuelFutuh <[email protected]>
@anandswaminathan anandswaminathan merged commit 755b546 into master Jun 11, 2019
eapolinario pushed a commit that referenced this pull request Sep 6, 2023
* Flinkk8soperator needs Log writer to be passed to
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants