Files
41d3a14103 fix(config): don't warn when the default conf/app.conf is simply absent (#29)
core/config's init() calls InitGlobalInstance("ini", "conf/app.conf") and, on
any error, prints "init global config instance failed..." to stderr. For the
overwhelmingly common case — a binary that configures via env/flags and ships
no Beego app.conf (control CLIs, embedded servers) — this fires on EVERY run as
benign noise the message itself tells you to ignore.

Emit the diagnostic only when conf/app.conf is present but failed to load
(parse/permission error). A missing default file is expected and stays silent.
InitGlobalInstance is still called unchanged; only the print is gated.


Co-authored-by: hanzo-dev <[email protected]>
2026-07-10 02:38:57 -07:00
..