mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01:00
make all the log functions/structs/enums use a single 'tr_log' namespace, such as tr_logGetQueue, tr_logAddInfo, tr_logIsLevelActive
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
#include "transmission.h"
|
||||
#include "ConvertUTF.h"
|
||||
#include "list.h"
|
||||
#include "log.h"
|
||||
#include "ptrarray.h"
|
||||
#include "utils.h"
|
||||
#include "variant.h"
|
||||
@@ -90,7 +91,7 @@ error_handler (jsonsl_t jsn,
|
||||
|
||||
if (data->source)
|
||||
{
|
||||
tr_err ("JSON parse failed in %s at pos %zu: %s -- remaining text \"%.16s\"",
|
||||
tr_logAddError ("JSON parse failed in %s at pos %zu: %s -- remaining text \"%.16s\"",
|
||||
data->source,
|
||||
jsn->pos,
|
||||
jsonsl_strerror (error),
|
||||
@@ -98,7 +99,7 @@ error_handler (jsonsl_t jsn,
|
||||
}
|
||||
else
|
||||
{
|
||||
tr_err ("JSON parse failed at pos %zu: %s -- remaining text \"%.16s\"",
|
||||
tr_logAddError ("JSON parse failed at pos %zu: %s -- remaining text \"%.16s\"",
|
||||
jsn->pos,
|
||||
jsonsl_strerror (error),
|
||||
buf);
|
||||
|
||||
Reference in New Issue
Block a user