convert LogOffset to string before doing string operations on it
@@ -286,7 +286,7 @@ class LogServiceStub(apiproxy_stub.APIProxyStub):
query.endTime = request.end_time()
if request.has_offset():
logging.info("Offset: %s", request.offset())
- query.offset = base64.b64decode(request.offset().replace('request_id: "', '').replace('"', ''))
+ query.offset = base64.b64decode(str(request.offset()).replace('request_id: "', '').replace('"', ''))
if request.has_minimum_log_level():
query.minimumLogLevel = request.minimum_log_level()
query.includeAppLogs = bool(request.include_app_logs())
