Sprinkle a debug log

Signed-off-by: Nieves Montero <nmontero@redhat.com>
This commit is contained in:
Nieves Montero 2023-03-08 11:24:16 +01:00
parent 2f7d549494
commit a8db8e5d51
2 changed files with 28 additions and 1 deletions

View File

@ -0,0 +1,22 @@
From cafbca996ec4a19f9f80bae109436e2dfc7149a4 Mon Sep 17 00:00:00 2001
From: Debarshi Ray <rishi@fedoraproject.org>
Date: Wed, 1 Mar 2023 19:41:56 +0100
Subject: [PATCH] cmd/root: Sprinkle a debug log
https://github.com/containers/toolbox/pull/1251
---
src/cmd/root.go | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/cmd/root.go b/src/cmd/root.go
index 9975ccc7a..2e7428a20 100644
--- a/src/cmd/root.go
+++ b/src/cmd/root.go
@@ -215,6 +215,7 @@ func migrate(cmd *cobra.Command, args []string) error {
logrus.Debug("Migrating to newer Podman")
if utils.IsInsideContainer() {
+ logrus.Debug("Migration not needed: running inside a container")
return nil
}

View File

@ -11,7 +11,7 @@ Version: 0.0.99.4
%gometa -f
%endif
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Tool for containerized command line environments on Linux
License: ASL 2.0
@ -20,6 +20,7 @@ Source0: https://github.com/containers/%{name}/releases/download/%{version
# Upstream
Patch0: toolbox-Don-t-use-podman-1-when-generating-the-comp.patch
Patch1: toolbox-Sprinkle-a-debug-log.patch
# Fedora specific
Patch100: toolbox-Make-the-build-flags-match-Fedora-s-gobuild.patch
@ -156,6 +157,7 @@ The %{name}-tests package contains system tests for %{name}.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%ifnarch ppc64
%patch100 -p1
@ -213,6 +215,9 @@ export CGO_CFLAGS="%{optflags} -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_
%changelog
* Wed Mar 8 2023 Nieves Montero <nmontero@redhat.com> - 0.0.99.4-2
- Sprinkle a debug log
* Wed Feb 22 2023 Debarshi Ray <rishi@fedoraproject.org> - 0.0.99.4-1
- Update to 0.0.99.4