Skip to content

Conversation

@npazosmendez
Copy link
Contributor

Description

Fixes #17987

@ghost ghost added the customer-reported Issues that are reported by GitHub users external to the Azure organization. label May 6, 2021
@ghost
Copy link

ghost commented May 6, 2021

Thank you for your contribution npazosmendez! We will review the pull request and get back to you soon.

.encode(std_encoding, errors='replace')
.decode(std_encoding, errors='replace'), end='') # each line of log has CRLF.
.decode(std_encoding, errors='replace')
.rstrip('\n\r')) # each line of log has CRLF.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

.rstrip('\n\r') might remove newlines which were intentionally logged by the app, so this is probably not ideal. But I don't know what line terminator is the extra one: \n, \r, \r\n?

From what I've seen, it seems to be \n. So replacing rstrip with [:-1] should do the job, as long as it is guaranteed that there will always be a trailing newline.

@yungezz yungezz added the App Services az appservice label May 7, 2021
@hilalhakla
Copy link

when will this fix be live ?

@npazosmendez
Copy link
Contributor Author

when will this fix be live ?

@Json2CSharp according to this comment, on 05/25/2021.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

App Services az appservice customer-reported Issues that are reported by GitHub users external to the Azure organization.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

webapp log tail throws TypeError

4 participants