tbird20d / grabserial

Grabserial - python-based serial dump and timing program - good for embedded Linux development
GNU General Public License v2.0
195 stars 77 forks source link

Ignore partial lines on invocation #55

Closed janipewter closed 3 years ago

janipewter commented 3 years ago

Hi all, me again. I'm finally at the stage where I am about to replace our current logging system with grabserial in production.

There is one slight niggle though - sometimes at the invocation of grabserial, it catches only part of a line of data, like this example:

[Wed Feb 17 11:17:27.154989 2021] 4,-627,146,-12
[Wed Feb 17 11:17:27.197966 2021] $1616707200,-37,70,-65,-626,146,-793,-35311,11838,-148845,,,,-55361,-30709,-12928,-76320,-10393,-37727,-104527,14,-3,15,,,
[Wed Feb 17 11:17:27.237997 2021] $1616707456,179,5,6,-628,147,-793,-35603,11166,-148143,,,,-55363,-30709,-12928,-76319,-10393,-37726,-104524,16,-5,15,,,
[Wed Feb 17 11:17:27.277551 2021] $1616707968,-35,1,5,-625,146,-796,-35545,11780,-148699,,,,-55366,-30708,-12925,-76318,-10397,-37722,-104520,13,-3,18,,,
[Wed Feb 17 11:17:27.318006 2021] $1616708480,-107,0,5,-628,146,-798,-36100,11809,-148611,,,,-55366,-30707,-12926,-76318,-10395,-37723,-104520,16,-3,20,,,
[Wed Feb 17 11:17:27.357688 2021] $1616708736,251,6,76,-629,146,-797,-35895,11750,-148406,,,,-55373,-30704,-12920,-76315,-10402,-37715,-104510,18,-3,19,,,
[Wed Feb 17 11:17:27.398016 2021] $1616709248,-250,-2,4,-627,145,-793,-35954,11837,-149311,,,,-55374,-30699,-12921,-76316,-10397,-37711,-104511,15,-3,15,,,
[Wed Feb 17 11:17:27.438019 2021] $1616709504,36,2,6,-627,147,-795,-36275,11897,-148436,,,,-55379,-30691,-12923,-76316,-10389,-37704,-104510,16,-4,16,,,
[Wed Feb 17 11:17:27.478024 2021] $1616710016,-35,1,75,-626,146,-796,-35808,11370,-148933,,,,-55378,-30694,-12921,-76316,-10393,-37705,-104509,15,-3,18,,,
[Wed Feb 17 11:17:27.518002 2021] $1616710272,-109,69,-65,-630,148,-799,-36217,11692,-149371,,,,-55378,-30693,-12923,-76316,-10391,-37706,-104510,18,-5,20,,,
[Wed Feb 17 11:17:27.558034 2021] $1616710784,36,2,75,-631,145,-798,-35340,11312,-148669,,,,-55376,-30693,-12926,-76317,-10386,-37708,-104514,19,-3,20,,,
[Wed Feb 17 11:17:27.598036 2021] $1616711040,-107,0,75,-627,145,-796,-35749,11166,-148699,,,,-55375,-30690,-12928,-76318,-10381,-37708,-104518,15,-2,17,,,
[Wed Feb 17 11:17:27.638021 2021] $1616711552,-107,0,5,-631,145,-802,-36159,11050,-149633,,,,-55378,-30686,-12925,-76318,-10382,-37701,-104515,20,-3,24,,,
[Wed Feb 17 11:17:27.678046 2021] $1616712064,107,3,6,-628,146,-794,-35486,10670,-148728,,,,-55373,-30697,-12928,-76317,-10387,-37714,-104516,17,-3,16,,,
[Wed Feb 17 11:17:27.718042 2021] $1616712320,-178,-1,75,-628,146,-796,-35399,11370,-147413,,,,-55373,-30697,-12927,-76317,-10388,-37713,-104516,17,-3,18,,,

As you can see the very first line has only caught part of the output. Is there a simple way of ignoring these partial lines (e.g. waiting for line break)?

github-actions[bot] commented 3 years ago

Stale issue message