summaryrefslogtreecommitdiffstats
path: root/store
diff options
context:
space:
mode:
authorJesse Hallam <jesse.hallam@gmail.com>2018-03-29 10:02:58 -0400
committerHarrison Healey <harrisonmhealey@gmail.com>2018-03-29 10:02:58 -0400
commitd4c04943604b69a0dc6bbc94172968ad234ef077 (patch)
tree362a0a3519501b21e523c7644ab30fcaf348275f /store
parent26b523e4a16ce99253b642a8354c3c7dbb865488 (diff)
downloadchat-d4c04943604b69a0dc6bbc94172968ad234ef077.tar.gz
chat-d4c04943604b69a0dc6bbc94172968ad234ef077.tar.bz2
chat-d4c04943604b69a0dc6bbc94172968ad234ef077.zip
MM-9661: tweak post message size log (#8517)
Call out the number of supported characters explicitly, moving the byte limit to parentheses.
Diffstat (limited to 'store')
-rw-r--r--store/sqlstore/post_store.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/store/sqlstore/post_store.go b/store/sqlstore/post_store.go
index 182cf4891..dc7248057 100644
--- a/store/sqlstore/post_store.go
+++ b/store/sqlstore/post_store.go
@@ -1269,8 +1269,6 @@ func (s *SqlPostStore) determineMaxPostSize() int {
l4g.Warn(utils.T("store.sql_post.query_max_post_size.unrecognized_driver"))
}
- l4g.Trace(utils.T("store.sql_post.query_max_post_size.max_post_size_bytes"), maxPostSizeBytes)
-
// Assume a worst-case representation of four bytes per rune.
maxPostSize = int(maxPostSizeBytes) / 4
@@ -1281,6 +1279,8 @@ func (s *SqlPostStore) determineMaxPostSize() int {
maxPostSize = model.POST_MESSAGE_MAX_RUNES_V1
}
+ l4g.Info(utils.T("store.sql_post.query_max_post_size.max_post_size_bytes"), maxPostSize, maxPostSizeBytes)
+
return maxPostSize
}