Skip to content

Commit

Permalink
Don't fail boot if debug.udp_log_addr is invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
rojer committed Jan 11, 2021
1 parent b338266 commit d0275ca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/mgos_sys_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,9 @@ enum mgos_init_result mgos_sys_config_init(void) {
("Sending logs to UDP %s", mgos_sys_config_get_debug_udp_log_addr()));
if (mgos_debug_udp_init(mgos_sys_config_get_debug_udp_log_addr()) !=
MGOS_INIT_OK) {
return MGOS_INIT_DEBUG_INIT_FAILED;
LOG(LL_ERROR, ("Failed to configure UDP logging!"));
// We don't want to abort boot just because of this.
// return MGOS_INIT_DEBUG_INIT_FAILED;
}
}
#endif /* MGOS_ENABLE_DEBUG_UDP */
Expand Down

0 comments on commit d0275ca

Please sign in to comment.