Files
Mike Cohen a6e5aedb4d Allow additional event artifacts to be specified in client config. (#2664)
By including custom event artifacts in the config it is possible to
implement client initialization actions that can take place even before
the client contacts the server.
2023-05-06 14:15:09 +10:00

26 lines
536 B
Go

package executor
import (
"context"
"sync"
config_proto "www.velocidex.com/golang/velociraptor/config/proto"
"www.velocidex.com/golang/velociraptor/logging"
)
func RunStartupTasks(
ctx context.Context,
config_obj *config_proto.Config,
wg *sync.WaitGroup,
exe Executor) error {
err := CheckForCrashes(ctx, config_obj, wg, exe)
if err != nil {
// Not a fatal error, just move on
logger := logging.GetLogger(config_obj, &logging.ClientComponent)
logger.Error("<red>CheckForCrashes Error:</> %v", err)
}
return nil
}