aboutsummaryrefslogtreecommitdiff
path: root/svg-flatten/src/main.cpp
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2021-09-29 17:43:39 +0200
committerjaseg <git@jaseg.de>2021-09-29 17:43:39 +0200
commit2380dcb22205cde26355f47de108f21a573d3d8d (patch)
tree99a61e137aad2a79472acf8cd55592cef6fd00b6 /svg-flatten/src/main.cpp
parent2184f3b1f50ec8fa9e19fad741319652664f1047 (diff)
downloadgerbolyze-2380dcb22205cde26355f47de108f21a573d3d8d.tar.gz
gerbolyze-2380dcb22205cde26355f47de108f21a573d3d8d.tar.bz2
gerbolyze-2380dcb22205cde26355f47de108f21a573d3d8d.zip
svg-flatten: Remove unnecessary debug prints
Diffstat (limited to 'svg-flatten/src/main.cpp')
-rw-r--r--svg-flatten/src/main.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/svg-flatten/src/main.cpp b/svg-flatten/src/main.cpp
index 2ebcfe9..e259881 100644
--- a/svg-flatten/src/main.cpp
+++ b/svg-flatten/src/main.cpp
@@ -37,7 +37,7 @@ string temp_file_path(const char *suffix) {
}
out << suffix;
- cerr << "out \"" << out.str() << "\"" << endl;
+ //cerr << "out \"" << out.str() << "\"" << endl;
#ifndef WASI
filesystem::path base = filesystem::temp_directory_path();
return (base / out.str()).native();
@@ -217,7 +217,7 @@ int main(int argc, char **argv) {
double scale = args["scale"].as<double>(1.0);
if (scale != 1.0) {
- cerr << "loading @scale=" << scale << endl;
+ cerr << "Info: Loading scaled input @scale=" << scale << endl;
}
sink = new SimpleGerberOutput(
@@ -293,7 +293,7 @@ int main(int argc, char **argv) {
bool is_svg = args["force_svg"] || (ending == ".svg" && !args["force_png"]);
if (!is_svg) {
- cerr << "writing bitmap into svg" << endl;
+ //cerr << "writing bitmap into svg" << endl;
if (!args["size"]) {
cerr << "Error: --size must be given when using bitmap input." << endl;
return EXIT_FAILURE;
@@ -349,7 +349,7 @@ int main(int argc, char **argv) {
svg.close();
} else { /* svg file */
- cerr << "copying svg input into temp svg" << endl;
+ //cerr << "copying svg input into temp svg" << endl;
/* c++ has the best hacks */
std::ostringstream sstr;
@@ -362,11 +362,11 @@ int main(int argc, char **argv) {
}
if (args["skip_usvg"]) {
- cerr << "skipping usvg" << endl;
+ cerr << "Info: Skipping usvg" << endl;
frob = barf;
} else {
- cerr << "calling usvg on " << barf << " and " << frob << endl;
+ //cerr << "calling usvg on " << barf << " and " << frob << endl;
int dpi = 96;
if (args["usvg_dpi"]) {
dpi = args["usvg_dpi"].as<int>();
@@ -396,7 +396,7 @@ int main(int argc, char **argv) {
};
SVGDocument doc;
- cerr << "Loading temporary file " << frob << endl;
+ //cerr << "Loading temporary file " << frob << endl;
ifstream load_f(frob);
if (!doc.load(load_f)) {
cerr << "Error loading input file \"" << in_f_name << "\", exiting." << endl;