logging: always add ids_print() to prefix even when using net backend

When using net log backend,
    adding severity and function name to log message.
    The log module name is a useful information when looking
    at log entries. This way remote log entries will
    contain the log module name.

Signed-off-by: David D <a8961713@gmail.com>
This commit is contained in:
David D 2020-07-14 08:40:00 +03:00 committed by Carles Cufí
commit cf582284f7

View file

@ -502,13 +502,13 @@ static uint32_t prefix_print(const struct log_output *log_output,
log_output->control_block->hostname ?
log_output->control_block->hostname :
"zephyr");
} else {
color_prefix(log_output, colors_on, level);
length += ids_print(log_output, level_on, func_on,
domain_id, source_id, level);
}
length += ids_print(log_output, level_on, func_on,
domain_id, source_id, level);
return length;
}