From 85862b19ea13090d763f31054c3d8244c220704d Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Tue, 29 Mar 2022 15:45:24 +0200 Subject: Logging: Add more logging statements --- src/state.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/state.go') diff --git a/src/state.go b/src/state.go index 521390e..c146e61 100644 --- a/src/state.go +++ b/src/state.go @@ -24,14 +24,14 @@ func (state *VPNState) Register(name string, directory string, stateCallback fun // Initialize the logger state.InitLog(LOG_WARNING) - state.Log(LOG_INFO, "App Registered") + state.Log(LOG_INFO, "App registered") state.StateCallback("Start", "Registered", "app registered") // Try to load the previous configuration if state.LoadConfig() != nil { // This error can be safely ignored, as when the config does not load, the struct will not be filled - // Make sure to log this when we have implemented a good logging system + state.Log(LOG_INFO, "Previous configuration not found") } return nil } -- cgit v1.2.3