Skip to content

Commit 900581a

Browse files
committed
message
1 parent 4badced commit 900581a

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

cmd/root.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,14 @@ func feedViaStdin(ctx context.Context, custom *custom.CustomBouncer, config *cfg
115115
err := f()
116116
switch {
117117
case err == nil:
118-
log.Warning("custom program exited with no error -- the command is not supposed to quit when using stdin")
118+
log.Warningf("custom program exited with no error (retry %d/%d) -- the command is not supposed to quit when using stdin", attempt, config.TotalRetries)
119119
case errors.Is(err, context.Canceled):
120120
log.Info("custom program terminated")
121121
return nil
122122
case config.TotalRetries == 1:
123-
log.Errorf("custom program exited: %s", err.Error())
123+
log.Errorf("custom program exited: %s", err)
124124
default:
125-
log.Errorf("custom program exited (retry %d/%d): %s", attempt, config.TotalRetries, err.Error())
125+
log.Errorf("custom program exited (retry %d/%d): %s", attempt, config.TotalRetries, err)
126126
}
127127

128128
delay = 2 * time.Second

test/tests/pkg/test_build_deb.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
from pathlib import Path
2+
13
import pytest
24

35
pytestmark = pytest.mark.deb
46

57

68
# This test has the side effect of building the package and leaving it in the
79
# project's parent directory.
8-
def test_deb_build(deb_package, skip_unless_deb):
10+
def test_deb_build(deb_package: Path, skip_unless_deb):
911
"""Test that the package can be built."""
1012
assert deb_package.exists(), f"Package {deb_package} not found"

0 commit comments

Comments
 (0)