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

CPP has no logging #50

Open
clemens-tolboom opened this issue Jan 29, 2021 · 1 comment
Open

CPP has no logging #50

clemens-tolboom opened this issue Jan 29, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@clemens-tolboom
Copy link
Contributor

Not sure this is useful but could we log (add debug switch) some internal state?

I did a simple test printing path.

Is there info useful for debugging provided data sources, fields, etc or are there better data validation tools?

(base) Clemenss-MacBook-Pro:geodot-plugin clemens$ git diff
diff --git a/src/geodot.cpp b/src/geodot.cpp
index acc61cc..6b26e57 100644
--- a/src/geodot.cpp
+++ b/src/geodot.cpp
@@ -24,6 +24,7 @@ Ref<GeoDataset> Geodot::get_dataset(String path) {
     Ref<GeoDataset> dataset;
     dataset.instance();
 
+    std::cout << "Using file: " << path.utf8().get_data() << std::endl;
     dataset->load_from_file(path);
 
     return dataset;
@kb173 kb173 added the enhancement New feature or request label Jan 29, 2021
@kb173
Copy link
Member

kb173 commented Jan 29, 2021

Yeah, the ability to create debug builds with additional output could be quite helpful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants