Skip to content

Commit

Permalink
Decode Packets, Again (#1156)
Browse files Browse the repository at this point in the history
* fixing issue where the iterator of a closed stream produces no output; added option to include an entire directory of input files; streamlined workflow between gcapy and preprocessed files

* added documentation; restored functionality of the source's iterator; tidied code

* restored functionlaity/reliability of skip-existing and management of duplicate files and file cleanup; added exclusive log for decode error messages

* collects all literal decode errors falling through the logging cracks

* finally eliminating log spam; tidying up the decoded log files's format

* better subclassing and management of the decoy OutStream

* tightening of the noose

* fixing the readme to account for the -f flag
  • Loading branch information
Fate-JH authored Dec 19, 2023
1 parent 93c3463 commit b17d699
Show file tree
Hide file tree
Showing 5 changed files with 446 additions and 96 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ make install PREFIX=$HOME/.local
```
Now you can run the program like that:
```
psf-decode-packets -o ./output-directory foo.gcap bar.gcap
psf-decode-packets -o ./output-directory -f foo.gcap bar.gcap
```
By default, decodePackets takes in `.gcap` files, but it can also take gcapy ascii files with the
`-p` option. Run `psf-decode-packets --help` to get usage info.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,9 @@ object ObjectCreateBase {
}
} catch {
case ex: Exception =>
log.error(s"Decoding error - ${ex.getClass.toString} - ${ex.toString} ($objectClass)")
Attempt.failure(Err(ex.getMessage))
val msg = s"Decoding error - ${ex.toString} ($objectClass)"
log.error(msg)
Attempt.failure(Err(msg))
}
}

Expand Down
Loading

0 comments on commit b17d699

Please sign in to comment.