File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -49,14 +49,14 @@ impl Runnable for DeployTask {
4949 } ;
5050 logfile. write_all ( b"\n task running...\n " ) ;
5151
52+ // Log the current user
53+ logfile. write_all ( format ! ( "system user: {}\n \n " , users:: get_current_username( ) . unwrap_or( "<none>" . to_owned( ) ) ) . as_bytes ( ) ) ;
54+
5255 // Log the hookshot environment variables
53- logfile. write_all ( format ! ( "hookshot environment:\n ---------------------\n {}\n " , format_environment( & self . env) ) . as_bytes ( ) ) ;
56+ logfile. write_all ( format ! ( "hookshot environment:\n ---------------------\n {}\n " , format_environment( & self . env) ) . as_bytes ( ) ) ;
5457
5558 // Log the system environment variables
56- logfile. write_all ( format ! ( "system environment:\n ------------------\n {}\n " , format_os_environment( ) ) . as_bytes ( ) ) ;
57-
58- // Log the current user
59- logfile. write_all ( format ! ( "user: {}\n \n " , users:: get_current_username( ) . unwrap_or( "<none>" . to_owned( ) ) ) . as_bytes ( ) ) ;
59+ logfile. write_all ( format ! ( "system environment:\n ------------------\n {}\n " , format_os_environment( ) ) . as_bytes ( ) ) ;
6060
6161 // Log what time the task started.
6262 let time_task_started = UTC :: now ( ) ;
You can’t perform that action at this time.
0 commit comments