Skip to content

Commit

Permalink
chore: add logger
Browse files Browse the repository at this point in the history
Signed-off-by: Kohei Morita <mrtc0@ssrf.in>
  • Loading branch information
mrtc0 committed Apr 21, 2022
1 parent b4e1942 commit 032c360
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/audit/fileaccess/audit.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ func RunAudit(ctx context.Context, wg *sync.WaitGroup, conf *config.Config) erro
defer wg.Done()

if !conf.RestrictedFileAccessConfig.Enable {
log.Info("fileaccess audit is disable. shutdown...")
return nil
}

Expand All @@ -82,6 +83,7 @@ func RunAudit(ctx context.Context, wg *sync.WaitGroup, conf *config.Config) erro

mgr.Attach()

log.Info("Start the fileaccess audit.")
eventChannel := make(chan []byte)
lostChannel := make(chan uint64)
mgr.Start(eventChannel, lostChannel)
Expand Down
2 changes: 2 additions & 0 deletions pkg/audit/mount/audit.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ func RunAudit(ctx context.Context, wg *sync.WaitGroup, conf *config.Config) erro
defer wg.Done()

if !conf.RestrictedMountConfig.Enable {
log.Info("mount audit is disable. shutdown...")
return nil
}

Expand All @@ -80,6 +81,7 @@ func RunAudit(ctx context.Context, wg *sync.WaitGroup, conf *config.Config) erro

mgr.Attach()

log.Info("Start the mount audit.")
eventChannel := make(chan []byte)
lostChannel := make(chan uint64)
mgr.Start(eventChannel, lostChannel)
Expand Down
1 change: 1 addition & 0 deletions pkg/audit/network/audit.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ func RunAudit(ctx context.Context, wg *sync.WaitGroup, conf *config.Config) erro
defer wg.Done()

if !conf.RestrictedNetworkConfig.Enable {
log.Info("netwrok audit is disable. shutdown...")
return nil
}

Expand Down

0 comments on commit 032c360

Please sign in to comment.