modify sentry message to not have specific size
@@ -41,8 +41,7 @@ class JsonlFilePolicy(object):
chunk_data = []
for chunk in chunks:
if len(chunk.data) > MAX_LINE_SIZE:
- msg = 'Metric data is {} bytes but the maximum size is {} bytes. Dropping it.'.format(
- len(chunk.data), MAX_LINE_SIZE)
+ msg = 'Metric data exceeds maximum size of {} bytes. Dropping it.'.format(MAX_LINE_SIZE)
wandb.termerror(msg, repeat=False)
util.sentry_message(msg)
else:
@@ -58,7 +57,7 @@ class SummaryFilePolicy(object):
def process_chunks(self, chunks):
data = chunks[-1].data
if len(data) > MAX_LINE_SIZE:
- msg = 'Summary is {} bytes but the maximum size is {} bytes. Dropping it.'.format(len(data), MAX_LINE_SIZE)
+ msg = 'Summary data exceeds maximum size of {} bytes. Dropping it.'.format(MAX_LINE_SIZE)
wandb.termerror(msg, repeat=False)
util.sentry_message(msg)
return False
