add debug info to log