From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/portage:master commit in: /, lib/_emerge/
Date: Thu, 17 Aug 2023 06:53:02 +0000 (UTC) [thread overview]
Message-ID: <1692255175.ab71ec960b65b2d77e5669d8979dc72e3f4ffb41.sam@gentoo> (raw)
commit: ab71ec960b65b2d77e5669d8979dc72e3f4ffb41
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 17 06:46:53 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Aug 17 06:52:55 2023 +0000
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=ab71ec96
lib: _emerge: call portage.util.initialize_logger()
We don't have a root logger setup otherwise which means we can't get nice
output from things like gemato which define their own logger names/domains.
And respect --debug for it.
Signed-off-by: Sam James <sam <AT> gentoo.org>
NEWS | 9 +++++++++
lib/_emerge/main.py | 4 ++++
2 files changed, 13 insertions(+)
diff --git a/NEWS b/NEWS
index d442a42ab0..ad541b95b1 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,12 @@
+portage-3.0.51 (UNRELEASED)
+--------------
+
+Features:
+* emerge: Set up logging immediately and respect --debug for log level.
+
+* sync: git, rsync: now respects --debug for better output from gemato. This is
+ especially useful for debugging hangs during the 'Refreshing keys' stage.
+
portage-3.0.50 (2023-08-09)
--------------
diff --git a/lib/_emerge/main.py b/lib/_emerge/main.py
index 41bed09696..d92f069901 100644
--- a/lib/_emerge/main.py
+++ b/lib/_emerge/main.py
@@ -1191,6 +1191,10 @@ def emerge_main(args: Optional[list[str]] = None):
myaction, myopts, myfiles = parse_opts(args, silent=True)
if "--debug" in myopts:
os.environ["PORTAGE_DEBUG"] = "1"
+ portage.util.initialize_logger(logging.DEBUG)
+ else:
+ portage.util.initialize_logger()
+
if "--config-root" in myopts:
os.environ["PORTAGE_CONFIGROOT"] = myopts["--config-root"]
if "--sysroot" in myopts:
next reply other threads:[~2023-08-17 6:53 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-17 6:53 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-12-19 1:25 [gentoo-commits] proj/portage:master commit in: /, lib/_emerge/ Zac Medico
2024-08-02 13:38 James Le Cuirot
2023-10-02 12:22 Sam James
2023-10-02 11:47 Sam James
2023-07-09 6:25 Sam James
2023-02-18 0:00 Sam James
2023-01-10 3:28 Sam James
2023-01-10 3:28 Sam James
2022-11-23 23:02 Sam James
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1692255175.ab71ec960b65b2d77e5669d8979dc72e3f4ffb41.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox