Merge branch 'main' into avm99963-monorail

Merged commit 34d8229ae2b51fb1a15bd208e6fe6185c94f6266

GitOrigin-RevId: 7ee0917f93a577e475f8e09526dd144d245593f4
diff --git a/framework/ratelimiter.py b/framework/ratelimiter.py
index b2bbb25..4e1a0b8 100644
--- a/framework/ratelimiter.py
+++ b/framework/ratelimiter.py
@@ -1,7 +1,6 @@
-# Copyright 2016 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style
-# license that can be found in the LICENSE file or at
-# https://developers.google.com/open-source/licenses/bsd
+# Copyright 2016 The Chromium Authors
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
 
 """Request rate limiting implementation.
 
@@ -174,7 +173,7 @@
         # monitor rate limit exceeded events with our standard tools.
         # We return a 400 with a custom error message to the client,
         # and this logging is so we can monitor it internally.
-        logging.info('%s, %d' % (exception_obj.message, count))
+        logging.info('%s, %d' % (str(exception_obj), count))
 
         self.limit_exceeded.increment()