log_message now support printf-like syntax
log_message() now support printf-like syntax
minor fix
some memory improvements