1818 I : IntoIterator < Item = S > ,
1919 S : AsRef < ffi:: OsStr > ,
2020{
21- tracing:: debug !( "Building {:?}" , root) ;
21+ tracing:: info !( "Building {:?}" , root) ;
2222 let output = Command :: new ( "/usr/bin/xcodebuild" )
2323 . arg ( "build" )
2424 . args ( args)
4747 I : IntoIterator < Item = S > ,
4848 S : AsRef < ffi:: OsStr > ,
4949{
50- tracing:: debug !( "Cleaning {:?}" , root) ;
50+ tracing:: info !( "Cleaning {:?}" , root) ;
5151
5252 Command :: new ( "/usr/bin/xcodebuild" )
5353 . arg ( "clean" )
@@ -63,22 +63,20 @@ where
6363
6464#[ cfg( feature = "serial" ) ]
6565pub async fn update_compiled_commands ( root : & PathBuf , build_log : Vec < String > ) -> Result < ( ) > {
66- fs:: write (
67- root. join ( ".compile" ) ,
68- Compiliation :: new ( build_log) . to_json ( ) ?,
69- )
70- . await ?;
71- tracing:: info!( "Updated Compiled Commands" ) ;
66+ let path = root. join ( ".compile" ) ;
67+ tracing:: info!( "Updating {:?}" , path) ;
68+ fs:: write ( path, Compiliation :: new ( build_log) . to_json ( ) ?) . await ?;
7269 Ok ( ( ) )
7370}
7471
7572pub async fn ensure_server_config_file ( root : & PathBuf ) -> Result < ( ) > {
7673 let path = root. join ( "buildServer.json" ) ;
7774 if fs:: File :: open ( & path) . await . is_ok ( ) {
78- tracing:: debug!( "buildServer.json exists." ) ;
7975 return Ok ( ( ) ) ;
8076 }
8177
78+ tracing:: info!( "Creating {:?}" , path) ;
79+
8280 let mut file = fs:: File :: create ( path) . await ?;
8381 let config = json ! ( {
8482 "name" : "XcodeBase Server" ,
@@ -99,7 +97,5 @@ pub async fn ensure_server_config_file(root: &PathBuf) -> Result<()> {
9997 file. sync_all ( ) . await ?;
10098 file. shutdown ( ) . await ?;
10199
102- tracing:: debug!( "buildServer.json created!" ) ;
103-
104100 Ok ( ( ) )
105101}
0 commit comments