saveLog saves the engine Log in the metadata store.
(ctx context.Context)
| 19 | |
| 20 | // saveLog saves the engine Log in the metadata store. |
| 21 | func (e *Engine) saveLog(ctx context.Context) error { |
| 22 | b, err := json.Marshal(e.EngineLog) |
| 23 | if err != nil { |
| 24 | return err |
| 25 | } |
| 26 | |
| 27 | return e.MetaStore.Store(ctx, engineLogsStoreKey, b) |
| 28 | } |
| 29 | |
| 30 | // loadLog loads the engine log from the metadata store. |
| 31 | func (e *Engine) loadLog(ctx context.Context) error { |