MCPcopy
hub / github.com/kopia/kopia / Enable

Method Enable

internal/repodiag/log_manager.go:65–71  ·  view source on GitHub ↗

Enable enables writing log blobs to repository. Logs are not written to the repository until Enable is called.

()

Source from the content-addressed store, hash-verified

63// Enable enables writing log blobs to repository.
64// Logs are not written to the repository until Enable is called.
65func (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.
74func (m *LogManager) Disable() {

Callers 7

TestLogManager_EnabledFunction · 0.95
TestLogManager_AutoFlushFunction · 0.95
TestLogManager_NullFunction · 0.95
RunFunction · 0.80

Calls 1

StoreMethod · 0.65

Tested by 4

TestLogManager_EnabledFunction · 0.76
TestLogManager_AutoFlushFunction · 0.76
TestLogManager_NullFunction · 0.76