diff options
Diffstat (limited to 'store')
-rw-r--r-- | store/sqlstore/post_store.go | 4 |
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 } |