mirror of
https://github.com/hanzoai/beego.git
synced 2026-11-17 13:19:25 +00:00
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]>