add TODOs from gitea issues

This commit is contained in:
rasmus 2022-11-03 12:42:59 +02:00
parent 55d47f30ec
commit f920d03bc8
2 changed files with 3 additions and 0 deletions

View File

@ -53,6 +53,7 @@ var App = &cli.App{
Description: "Collect and ship kubernetes logs",
// Usage: "rubykana <input>",
// TODO: #2: yaml
Flags: []cli.Flag{
&cli.BoolFlag{Name: "dry-run", Usage: "Do not write to database"}, // TODO:
&cli.StringFlag{Name: "log-directory", Usage: "Directory to watch for logs", Value: "/var/log/containers"},
@ -146,6 +147,7 @@ var App = &cli.App{
if !ok {
return
}
// TODO: #1: || if not in filterset
if event.Op != fsnotify.Create {
continue
}

View File

@ -111,6 +111,7 @@ func (s *submitter) shipFileRoutine(name string, sigCatchupped chan<- struct{})
}
select {
// TODO: use per-file batch senders for file deletion mongo synced, and better error handling; #3
case s.sendQueue <- mLog{
HostInfo: s.hostInfo,
Filename: *line.Filename,