Skip to content

Commit 720d5cc

Browse files
committed
Add process id to logging
1 parent 764323b commit 720d5cc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ var libraryPID int = -1
204204

205205
func getDynamicLibrary() unsafe.Pointer {
206206
if libraryHandle == nil || libraryPID == -1 || libraryPID != os.Getpid() {
207-
fmt.Println("Fork detected. Reloading submodule.")
207+
fmt.Printf("Fork detected. Having process id %d now. Reloading submodule.\n", os.Getpid())
208208
if libraryHandle != nil {
209209
C.dlerror()
210210
C.dlclose(libraryHandle)

0 commit comments

Comments
 (0)