MCPcopy
hub / github.com/apptainer/apptainer / Close

Method Close

internal/pkg/instance/logger.go:179–185  ·  view source on GitHub ↗

Close closes all pipe pairs created with NewWriter and also closes log file descriptor.

()

Source from the content-addressed store, hash-verified

177// Close closes all pipe pairs created with NewWriter and also closes
178// log file descriptor.
179func (l *Logger) Close() {
180 l.endScans()
181 l.fm.Lock()
182 l.file.Sync()
183 l.file.Close()
184 l.fm.Unlock()
185}
186
187// ReOpenFile closes and re-open log file (eg: log rotation).
188func (l *Logger) ReOpenFile() error {

Callers 15

TestLoggerFunction · 0.95
GetEntryMethod · 0.45
ProgressBarCallbackFunction · 0.45
PushFunction · 0.45
TestGetOCITokenFunction · 0.45
DownloadImageFunction · 0.45
getUserDataFunction · 0.45
DownloadImageFunction · 0.45
ensureSIFFunction · 0.45
ImageHashFunction · 0.45
DownloadImageFunction · 0.45
pullFunction · 0.45

Calls 3

endScansMethod · 0.95
LockMethod · 0.80
UnlockMethod · 0.80

Tested by 15

TestLoggerFunction · 0.76
TestGetOCITokenFunction · 0.36
ensureIntFunction · 0.36
ensureContainsIntFunction · 0.36
ensureStateBecomesFunction · 0.36
testFchmodFunction · 0.36
TestUserXattrFunction · 0.36
createSquashfsFunction · 0.36
ServeHTTPMethod · 0.36
TestSearchPubkeyFunction · 0.36
TestFetchPubkeyFunction · 0.36
TestPushPubkeyFunction · 0.36