Skip to content

Commit

Permalink
tracing
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaro00 committed Jun 26, 2023
1 parent a05f064 commit ac77b37
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions cargo-shuttle/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,10 +273,12 @@ impl RequestContext {
.workspace_path()
.unwrap_or(project_args.working_directory.clone());

trace!("looking for Shuttle.toml in {}", workspace_path.display());
let local_manager = LocalConfigManager::new(workspace_path, "Shuttle.toml".to_string());
let mut project = Config::new(local_manager);

if !project.exists() {
trace!("no local Shuttle.toml found");
project.replace(ProjectConfig::default());
} else {
trace!("found a local Shuttle.toml");
Expand Down
4 changes: 2 additions & 2 deletions cargo-shuttle/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -676,9 +676,9 @@ impl Shuttle {

let addr = SocketAddr::new(
if run_args.external {
Ipv4Addr::new(0, 0, 0, 0)
Ipv4Addr::UNSPECIFIED // 0.0.0.0
} else {
Ipv4Addr::LOCALHOST
Ipv4Addr::LOCALHOST // 127.0.0.1
}
.into(),
run_args.port + i,
Expand Down

0 comments on commit ac77b37

Please sign in to comment.