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

Fix incorrect frame numbers in tf_logging.warn #27871

Merged

Conversation

yongtang
Copy link
Member

This fix tries to address the issue raised in #27848 where the frame numbers in tf_logging.warn is incorrect in python 3.

The reason was that in python 2, warn = warning but in python 3, an additional wrapper has been added to deprecate the warn. For that reason one additional frame has been added, thus causing
incorrect output in the log.

This fix fixes #27848.

Signed-off-by: Yong Tang yong.tang.github@outlook.com

This fix tries to address the issue raised in 27848 where
the frame numbers in tf_logging.warn is incorrect in python 3.

The reason was that in python 2, `warn = warning` but in python 3,
an additional wrapper has been added to deprecate the warn. For
that reason one additional frame has been added, thus causing
incorrect output in the log.

This fix fixes 27848.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
@gbaned gbaned added the size:XS CL Change Size: Extra Small label Apr 16, 2019
@gbaned gbaned added this to Assigned Reviewer in PR Queue via automation Apr 16, 2019
@gbaned gbaned requested a review from caisq April 16, 2019 05:56
@ymodak ymodak added prtype:bugfix PR to fix a bug awaiting review Pull request awaiting review labels Apr 19, 2019
@gbaned
Copy link
Contributor

gbaned commented Apr 25, 2019

@caisq Hi, Could you PTAL and approve.

PR Queue automation moved this from Assigned Reviewer to Approved by Reviewer Apr 25, 2019
@tensorflow-bot tensorflow-bot bot added kokoro:force-run Tests on submitted change ready to pull PR ready for merge process labels Apr 25, 2019
@caisq caisq added kokoro:force-run Tests on submitted change and removed kokoro:force-run Tests on submitted change labels Apr 25, 2019
@kokoro-team kokoro-team removed the kokoro:force-run Tests on submitted change label Apr 25, 2019
@tensorflowbutler tensorflowbutler removed the awaiting review Pull request awaiting review label Apr 26, 2019
@gbaned gbaned added kokoro:force-run Tests on submitted change ready to pull PR ready for merge process and removed ready to pull PR ready for merge process labels Apr 30, 2019
@kokoro-team kokoro-team removed the kokoro:force-run Tests on submitted change label Apr 30, 2019
@tensorflow-copybara tensorflow-copybara merged commit 7ae75b2 into tensorflow:master Apr 30, 2019
PR Queue automation moved this from Approved by Reviewer to Merged Apr 30, 2019
tensorflow-copybara pushed a commit that referenced this pull request Apr 30, 2019
@yongtang yongtang deleted the 27848-logging-warning branch April 30, 2019 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes prtype:bugfix PR to fix a bug ready to pull PR ready for merge process size:XS CL Change Size: Extra Small
Projects
PR Queue
  
Merged
Development

Successfully merging this pull request may close these issues.

Error filename logging with tf.logging.warn
9 participants