Simplified Logs RPC. Cleaned up code. Added comments.

This commit is contained in:
Milos Gajdos
2019-11-28 18:08:48 +00:00
parent 612f872f76
commit 7f1dea72f2
6 changed files with 51 additions and 18 deletions

View File

@@ -26,6 +26,7 @@ func NewDebug(name string) *Debug {
}
}
// Logs queries the service logs and returns a channel to read the logs from
func (d *Debug) Logs(opts ...log.ReadOption) (<-chan log.Record, error) {
options := log.ReadOptions{}
// initialize the read options