Commit 945c1b25 authored by dylan grafmyre's avatar dylan grafmyre
Browse files

lua more precise logging

parent 77de0a16
...@@ -5,23 +5,23 @@ end ...@@ -5,23 +5,23 @@ end
local function main() local function main()
local state = file.Read('runme.txt') local state = file.Read('runme.txt')
if state == '' then if state == '' then
print( "nav_generate:main: start nav_generate ..." ) print( "nav_generate:main:: start nav_generate ..." )
RunConsoleCommand( "nav_generate", nil ) RunConsoleCommand( "nav_generate", nil )
print( "nav_generate:main: start nav_generate ... returned" ) print( "nav_generate:main:: start nav_generate ... returned" )
print( "nav_generate:main: write state ..." ) print( "nav_generate:main:: write state: ng_2 ..." )
file.Write('runme.txt', 'ng_2') file.Write('runme.txt', 'ng_2')
print( "nav_generate:main: write state ... done " ) print( "nav_generate:main:: write state: ng_2 ... done " )
return return
end elseif state == 'ng_2' then
if state == 'ng_2' then print( "nav_generate:main:ng_2: write state: ng_f ..." )
print( "nav_generate:main: write state ..." )
file.Write('runme.txt', 'ng_f') file.Write('runme.txt', 'ng_f')
print( "nav_generate:main: write state ... done " ) print( "nav_generate:main:ng_2: write state: ng_f ... done " )
print( "nav_generate:main: manual tasks: ['quit']" ) print( "nav_generate:main:ng_2: manual tasks: ['quit']" )
return return
else:
print( "nav_generate:main:E: unhandled state: " )
print ( string_repr(state) )
print( "nav_generate:main:E: manual tasks: ['quit']" )
end end
print( "nav_generate:main: unhandled state: " )
print ( string_repr(state) )
print( "nav_generate:main: manual tasks: ['quit']" )
end end
timer.Simple( 2, main ) timer.Simple( 2, main )
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment