logger changes from global static variables to one instance per stellar

This commit is contained in:
luwenpeng
2024-08-23 18:44:17 +08:00
parent 8db2e70c38
commit 4e524a8781
23 changed files with 306 additions and 252 deletions

View File

@@ -4,13 +4,13 @@
#include <string.h>
#include <netinet/ether.h>
#include "log.h"
#include "marsio.h"
#include "marsio_io.h"
#include "packet_private.h"
#include "log_private.h"
#include "packet_parser.h"
#include "packet_private.h"
#define PACKET_IO_LOG_ERROR(format, ...) LOG_ERROR("marsio", format, ##__VA_ARGS__)
#define PACKET_IO_LOG_ERROR(format, ...) STELLAR_LOG_ERROR(__thread_local_logger, "marsio", format, ##__VA_ARGS__)
struct marsio_io
{