• Cedric Roux's avatar
    bugfix: bad usage of T() in the log module · 39c42bca
    Cedric Roux authored
    The LOG_x() and T() logic was wrong.
    
    LOG_x() goes to the terminal when T_stdout == 1 or T_stdout == 2.
    It goes to T() when T_stdout == 0 or T_stdout == 2.
    
    The call T() does the check for T_stdout == 0 or T_stdout == 2.
    So we have to call it out of the check "if (T_stdout)".
    
    So, well, let's fix that.
    
    Some spacing was fixed as well. clang-format may complain.
    39c42bca
log.h 19.8 KB