Modify

Opened 3 years ago

Last modified 3 years ago

#17694 new defect

logread output is sometimes truncated

Reported by: cz <chengzhicn@…> Owned by: developers
Priority: high Milestone:
Component: base system Version: Barrier Breaker 14.07
Keywords: Cc:

Description

I'm running BARRIER BREAKER (14.07, r42258) x86 on vmware and changed log_size in /etc/config/system to 512 to save more logs

root@OpenWrt:/etc/config# logread | wc -l
400
root@OpenWrt:/etc/config# logread | wc -l
400
root@OpenWrt:/etc/config# logread | wc -l
400
root@OpenWrt:/etc/config# logread | wc -l
400
root@OpenWrt:/etc/config# logread | wc -l
3035
root@OpenWrt:/etc/config# logread | wc -l
400
root@OpenWrt:/etc/config# logread | wc -l
3035
root@OpenWrt:/etc/config# logread | wc -l
400
root@OpenWrt:/etc/config# logread | wc -l
3035
root@OpenWrt:/etc/config# logread | wc -l
3035
root@OpenWrt:/etc/config# logread | wc -l
400
root@OpenWrt:/etc/config# logread | wc -l
400
root@OpenWrt:/etc/config# logread | wc -l
400

Attachments (0)

Change History (1)

comment:1 Changed 3 years ago by hnyman

bug #15357 was about something similar, but that was supposed to be fixed by r40295.

The log content are passed in a rather complicated way from the daemon to the logread client. Originally it was done via ubus calls, but I proved that to fail for large logs, so developers wrote the via-file method to help with large logs. First implementation of that failed a bit randomly, and that was supposed to be fixed with r40295 (actually http://nbd.name/gitweb.cgi?p=luci2/ubox.git;a=commit;h=1d9d2e6ae99c9ba72d1bc40e554d5f422c9b9196 )

Both logd and logread sources are at http://nbd.name/gitweb.cgi?p=luci2/ubox.git;a=tree;f=log;hb=HEAD

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.