pw_presubmit: Log evaluated commit message

Change-Id: I7152f1c281d579e9d2d98ed7dd3dd0d2cbcbf8ef
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/17281
Reviewed-by: Wyatt Hepler <hepler@google.com>
Commit-Queue: Rob Mohr <mohrr@google.com>
diff --git a/pw_presubmit/py/pw_presubmit/pigweed_presubmit.py b/pw_presubmit/py/pw_presubmit/pigweed_presubmit.py
index 0b79dc7..ff3515f 100755
--- a/pw_presubmit/py/pw_presubmit/pigweed_presubmit.py
+++ b/pw_presubmit/py/pw_presubmit/pigweed_presubmit.py
@@ -345,6 +345,11 @@
     """Checks that the top commit's message is correctly formatted."""
     lines = git_repo.commit_message().splitlines()
 
+    # Show limits and current commit message in log.
+    _LOG.debug('%-25s%+25s%+22s', 'Line limits', '50|', '72|')
+    for line in lines:
+        _LOG.debug(line)
+
     if not lines:
         _LOG.error('The commit message is too short!')
         raise PresubmitFailure