Enable enables writing log blobs to repository. Logs are not written to the repository until Enable is called.
()
| 63 | // Enable enables writing log blobs to repository. |
| 64 | // Logs are not written to the repository until Enable is called. |
| 65 | func (m *LogManager) Enable() { |
| 66 | if m == nil { |
| 67 | return |
| 68 | } |
| 69 | |
| 70 | m.enabled.Store(true) |
| 71 | } |
| 72 | |
| 73 | // Disable disables writing log blobs to repository. |
| 74 | func (m *LogManager) Disable() { |