4848
4949print (" " )
5050print (" Rainy's android development tool: geta" )
51- print (" --------------------------------------" )
51+ print (" --------------------------------------- " )
5252print (" Version | " .. package .version )
5353print (" Description | " .. package .description )
5454print (" License | " .. package .license )
55- print (" --------------------------------------" )
55+ print (" --------------------------------------- " )
5656print (" " )
5757
5858local accept = { ' dmesg' , ' logcat' , ' ramoops' , ' clear' , ' clearall' }
@@ -146,13 +146,17 @@ childprocess.exec('adb devices', function (_, res)
146146end )
147147
148148log (string.format (' Device avaliable, now running log recorder... [%s]' , mode ))
149+ log (string.format (' File avaliable in: %s' , full_path ))
149150
150151local function run_dmesg_recorder (file )
151152 local childProcess = require (' childprocess' )
152153 local child = childProcess .spawn (' adb' , {' shell' , ' su' , ' -c' , ' dmesg' , ' -w' }, {})
153154 child .stdout :on (' data' , function (data )
154155 fs .writeSync (file , - 1 , data )
155156 end )
157+ child .stdout :on (' close' , function ()
158+ log (' (FINISHED)' )
159+ end )
156160end
157161
158162local function run_logcat_recorder (file )
@@ -161,6 +165,9 @@ local function run_logcat_recorder(file)
161165 child .stdout :on (' data' , function (data )
162166 fs .writeSync (file , - 1 , data )
163167 end )
168+ child .stdout :on (' close' , function ()
169+ log (' (FINISHED)' )
170+ end )
164171end
165172
166173local function run_ramoops_recorder (file )
@@ -170,7 +177,7 @@ local function run_ramoops_recorder(file)
170177 fs .writeSync (file , - 1 , data )
171178 end )
172179 child .stdout :on (' close' , function ()
173- log (string.format ( ' (FINISHED) File avaliable in: %s ' , full_path ) )
180+ log (' (FINISHED)' )
174181 end )
175182end
176183
0 commit comments