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

feat: Enable TURN servers logging when fetching calling config #5523

Merged
merged 3 commits into from Jan 2, 2019

Conversation

atomrc
Copy link
Contributor

@atomrc atomrc commented Jan 2, 2019

No description provided.

app/script/calling/CallingRepository.js Outdated Show resolved Hide resolved
@@ -1604,8 +1604,10 @@ z.calling.CallingRepository = class CallingRepository {
const expirationDate = new Date(Date.now() + timeout);
callingConfig.expiration = expirationDate;

const logMessage = `Updated calling configuration expires on '${expirationDate.toISOString()}'`;
this.callLogger.info(logMessage, callingConfig);
const turnServersConfig = (callingConfig.ice_servers || []).map(server => server.urls.join('\n')).join('\n');
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't we rather join the server array with , ? That way the log won't be so large.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It makes the log way easier to read though, you can easily identify which are tpc and udp servers with the \n

Co-Authored-By: atomrc <thomasbelin4@gmail.com>
@atomrc atomrc merged commit ab85e12 into dev Jan 2, 2019
@atomrc atomrc deleted the feat/calling_log_serialization branch January 2, 2019 15:21
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.

None yet

2 participants