aboutsummaryrefslogtreecommitdiff
path: root/lib/logging.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-07-03 20:08:46 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-07-04 07:52:47 +0900
commitdf164cd856a34d8c1462793a40e56d387389b82f (patch)
tree91e69f92a5ad64b70495bef12fa6449eb32aef3b /lib/logging.h
parenteaca25fd5115ab00a29b7d47dfc6e16cbfd5e552 (diff)
downloadlibquotient-df164cd856a34d8c1462793a40e56d387389b82f.tar.gz
libquotient-df164cd856a34d8c1462793a40e56d387389b82f.zip
Connection: Trim raw data in emitted signals
If the payload is too large, an attempt to allocate a QString out of QByteArray may end with qBadAlloc(). So by default the data emitted in case of error are trimmed to 64KiB, and this can be overridden to a different value (or switched off entirely with <n>=0) by adding - DTRIM_RAW_DATA=<n> to CPP_FLAGS.
Diffstat (limited to 'lib/logging.h')
0 files changed, 0 insertions, 0 deletions