Skip to content

Commit

Permalink
Remove prints (#762)
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor-N-Suadicani committed Nov 28, 2022
1 parent 66de87c commit c387b3c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions prost-build/src/code_generator.rs
Expand Up @@ -994,11 +994,11 @@ fn unescape_c_escape_string(s: &str) -> Vec<u8> {
p += 1;
}
b'0'..=b'7' => {
eprintln!("another octal: {}, offset: {}", s, &s[p..]);
debug!("another octal: {}, offset: {}", s, &s[p..]);
let mut octal = 0;
for _ in 0..3 {
if p < len && src[p] >= b'0' && src[p] <= b'7' {
eprintln!("\toctal: {}", octal);
debug!("\toctal: {}", octal);
octal = octal * 8 + (src[p] - b'0');
p += 1;
} else {
Expand Down
5 changes: 3 additions & 2 deletions prost-build/src/lib.rs
Expand Up @@ -138,6 +138,7 @@ use std::ops::RangeToInclusive;
use std::path::{Path, PathBuf};
use std::process::Command;

use log::debug;
use log::trace;

use prost::Message;
Expand Down Expand Up @@ -857,7 +858,7 @@ impl Config {
if include.as_ref().exists() {
cmd.arg("-I").arg(include.as_ref());
} else {
println!(
debug!(
"ignoring {} since it does not exist.",
include.as_ref().display()
)
Expand All @@ -878,7 +879,7 @@ impl Config {
cmd.arg(proto.as_ref());
}

println!("Running: {:?}", cmd);
debug!("Running: {:?}", cmd);

let output = cmd.output().map_err(|error| {
Error::new(
Expand Down

0 comments on commit c387b3c

Please sign in to comment.