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

Bug 1646706 - Manage log_pings from core and add docs about debugging through env vars #1058

Merged
merged 10 commits into from
Jul 15, 2020

Conversation

brizental
Copy link
Contributor

I also fix an intermittent test failure introduced by the previous PR, I didn't realize this was a problem until I ran some final tests before pushing this branch.

This changes will also fix https://bugzilla.mozilla.org/show_bug.cgi?id=1648007 and https://bugzilla.mozilla.org/show_bug.cgi?id=1648012 for free, in case we only want C# and Python to manage debug optins through environment variables.

Finally I also add docs about debugging through environment variables here.

@auto-assign auto-assign bot requested a review from mdboom July 14, 2020 11:09
@brizental brizental requested review from Dexterp37 and removed request for mdboom July 14, 2020 11:09

while (task.tag != FfiPingUploadTask_Done) {
printf("tag: %d\n", task.tag);

if (task.tag == FfiPingUploadTask_Upload) {
printf("path: %s\n", task.upload.path);
printf("body length: %lld\n", task.upload.body.len);
printf("body length: %d\n", task.upload.body.len);
Copy link
Contributor Author

@brizental brizental Jul 14, 2020

Choose a reason for hiding this comment

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

I was getting a warning about this everytime I built the C app. Was there a reason for the previous choice?

Copy link
Contributor

Choose a reason for hiding this comment

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

Which warning?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

cc  -I.. -o glean_app glean_app.c ../../../target/debug/libglean_ffi.dylib
glean_app.c:55:41: warning: format specifies type 'long long' but the argument has type
      'int32_t' (aka 'int') [-Wformat]
          printf("body length: %lld\n", task.upload.body.len);
                               ~~~~     ^~~~~~~~~~~~~~~~~~~~
                               %d

@brizental brizental force-pushed the 1646706-debug-env-2 branch from 83e6759 to 18f80af Compare July 14, 2020 11:52
@brizental brizental changed the title Bug 1646706 - Manage log_pings from core and add docs about debugging thorugh env vars Bug 1646706 - Manage log_pings from core and add docs about debugging through env vars Jul 14, 2020
Copy link
Member

@travis79 travis79 left a comment

Choose a reason for hiding this comment

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

I answered your question and left a couple of comments :)

docs/user/debugging/ios.md Show resolved Hide resolved
docs/user/debugging/ios.md Show resolved Hide resolved
glean-core/ios/Glean/Glean.swift Outdated Show resolved Hide resolved
Copy link
Contributor

@Dexterp37 Dexterp37 left a comment

Choose a reason for hiding this comment

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

Looks good overall, I left a few comments here and there, but nothing major.

Copy link
Member

@travis79 travis79 left a comment

Choose a reason for hiding this comment

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

A few nits and changes I noticed, when digging deeper.

glean-core/ios/Glean/Glean.swift Outdated Show resolved Hide resolved
glean-core/ios/Glean/Glean.swift Outdated Show resolved Hide resolved
glean-core/ios/Glean/Glean.swift Show resolved Hide resolved
glean-core/ios/Glean/Glean.swift Show resolved Hide resolved
glean-core/ios/Glean/Glean.swift Outdated Show resolved Hide resolved
* Separate env vars text in it's own section on iOS docs
* Remove env vars text from Android docs and add note about it
* Correct exposure of methods in kt and swift
* Set default value of `false` to logPings in kt and swift
* Set logPings to true before init for tests setup in kt and swift
@brizental brizental requested review from Dexterp37 and travis79 July 15, 2020 09:25
Copy link
Member

@travis79 travis79 left a comment

Choose a reason for hiding this comment

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

r+wc!

glean-core/ios/Glean/Glean.swift Show resolved Hide resolved
@brizental brizental merged commit 15e35b2 into mozilla:main Jul 15, 2020
@brizental brizental deleted the 1646706-debug-env-2 branch July 15, 2020 12:58
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.

3 participants