init: fix missing errors if logs didn't initialize
Set the log level to DEBUG if args (and therefore logging) failed to initialize. This causes the default logging handler to be used, and everything that gets written to the log (error message and trace!) will get printed to stdout instead of not being printed anywhere at all.
This can be tested by removing x86_64 from the mapping in pmb.parse.arch.alpine_native() (assuming the host is x86_64). Without this patch, no meaningful error appears. With the patch, the real error message, and a stack trace gets printed.
Closes #1732 (closed).
Edited by Administrator