Skip to content

Commit

Permalink
Telemetry service directory override.
Browse files Browse the repository at this point in the history
In addition to opt-in for telemetry (see #553) this uses the log
directory override from #556 to place the sentry/telemetry logs.
  • Loading branch information
jshort committed May 2, 2024
1 parent 1483b77 commit a09aa07
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions docs/creating_release.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

1. Increment the project(...) version in CMakeLists.txt and push to master.
2. Switch to the release branch
3. Pull in the lastest changes: `git merge master`
3. Pull in the latest changes: `git merge master`
4. Run `git submodule update --recursive --init` to ensure that the submodules are updated to the latest master/release commit.
5. Run `import_submodules.sh` to create an in-repo copy of the submodules
6. `git add external_imported` and commit/push any changes
7. Create a github release using the latest commit and tag it with `et-vA.B.C` where A/B/C is the major/minor/patch version.
8. Switch to the deployment branch
9. Edit the `deployment/debian_SOURCE/changelog` file and add a entry for the new release.
10. Copy id_rsa / id_rsa.pub / .gnupg to the deploymen directory. The rsa key needs to have write access to the debian-et github repo and the gnupg key needs to have write access to launchpad
10. Copy id_rsa / id_rsa.pub / .gnupg to the deployment directory. The rsa key needs to have write access to the debian-et github repo and the gnupg key needs to have write access to launchpad
11. Build and run a docker image interactively from ubuntu.Dockerfile
12. inside the docker image, run deploy_ubuntu_ppa.sh
13. Exit the docker image and create a vagrant VM for debian
14. inside the vagrant vm, run build_all_deb.sh
15. Follow the instructions at the end of the build_all_deb command to push the new debian artifacts. Do not push the dbgsym (debug symbols) because github cannot handle files that large
15. Follow the instructions at the end of the build_all_deb command to push the new debian artifacts. Do not push the dbgsym (debug symbols) because github cannot handle files that large
8 changes: 4 additions & 4 deletions src/terminal/TerminalServerMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ int main(int argc, char **argv) {

int port = 0;
string bindIp = "";
bool telemetry = false;
bool enableTelemetry = false;
string logDirectory = GetTempDirectory();
if (result.count("cfgfile")) {
// Load the config file
Expand All @@ -101,7 +101,7 @@ int main(int argc, char **argv) {
}
}

telemetry = ini.GetBoolValue("Debug", "telemetry", false);
enableTelemetry = ini.GetBoolValue("Debug", "telemetry", false);
// read verbose level (prioritize command line option over cfgfile)
const char *vlevel = ini.GetValue("Debug", "verbose", NULL);
if (result.count("verbose")) {
Expand Down Expand Up @@ -155,7 +155,7 @@ int main(int argc, char **argv) {
}

if (result.count("telemetry")) {
telemetry = result["telemetry"].as<bool>();
enableTelemetry = result["telemetry"].as<bool>();
}

if (result.count("logdir")) {
Expand All @@ -181,7 +181,7 @@ int main(int argc, char **argv) {
el::Helpers::installPreRollOutCallback(LogHandler::rolloutHandler);

TelemetryService::create(
telemetry, GetTempDirectory() + "/.sentry-native-etserver", "Server");
enableTelemetry, logDirectory + "/.sentry-native-etserver", "Server");

serverFifo.createDirectoriesIfRequired();

Expand Down

0 comments on commit a09aa07

Please sign in to comment.