File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ static void log_to_files(const char *log_prefix,
207
207
struct log_file * * log_files )
208
208
{
209
209
char tstamp [sizeof ("YYYY-mm-ddTHH:MM:SS.nnnZ " )];
210
- char * entry , * nodestr ;
210
+ char * entry , nodestr [ hex_str_size ( PUBKEY_CMPR_LEN )] ;
211
211
bool filtered ;
212
212
213
213
if (print_timestamps ) {
@@ -218,9 +218,10 @@ static void log_to_files(const char *log_prefix,
218
218
tstamp [0 ] = '\0' ;
219
219
220
220
if (node_id )
221
- nodestr = fmt_node_id (tmpctx , node_id );
221
+ hex_encode (node_id -> k , sizeof (node_id -> k ),
222
+ nodestr , sizeof (nodestr ));
222
223
else
223
- nodestr = "" ;
224
+ nodestr [ 0 ] = '\0' ;
224
225
if (level == LOG_IO_IN || level == LOG_IO_OUT ) {
225
226
const char * dir = level == LOG_IO_IN ? "[IN]" : "[OUT]" ;
226
227
char * hex = tal_hexstr (NULL , io , io_len );
You can’t perform that action at this time.
0 commit comments