kalua: log: do() optimize debug-calls: if debug is not on, dont do anything