-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clean logs #1252
Clean logs #1252
Conversation
This commit changes the info logs to debug and deletes the logs from the method readPacket as they are repetative and don't offer much in terms of debugging.
This commit changes the info logs to debug and deletes the logs that are just used to notify about lock and unlock..
This commit changes the info logs to debug and and along with that adds a WithField method to the logs of the methods with the func as the field insted of having the name of the method in the log.
This commit changes the info logs to debug and adds a startup finished info log.
This commit fixes the error log by printing it only if the error is not equal to context cancled.
This commit removes the Requesting and Obtained log for summary via RPC as it is a recurring log and is not usefull.
This commit changes the log level of Stdout to Debug and Stderr to Error instead of both being Info.
This commit updates the vpn-client logs by printing the error logs with print() that uses the Stderr to write out the errors. We also get rid of *logrus.Logger in client as it was also writing logs to Stderr instead of Stdout as we need our non error logs to be.
This commit fixes the error log printed when the RouteGroup is already closed.
This commit fixes the entry log in the method RegisterEntry of HTTPClient by adding a String method to the reciever Service which returns a string of the Marshalled struct and also using the String method of the Addr struct inside it.
The first five lines of logs can be simplified. No need to say we are reading config from file as its default behavior. Since visor and config version are the same, we can omit the second log of the version. Can print a log line if we update the config. Config path and version can be printed on the same line imo. |
I would also update documentation in the wiki with the new log level. Are we getting the debug logs in the hypervisor |
Yes, will update the wiki with the new log level. |
The version log
Fixed the first part but about the |
This commit fixes the vpn-client not working issue that was introduced by the commit 920461c since it passed eventSub to the appclient before running eventSub.OnTCPDial and eventSub.OnTCPClose which caused the vpn-client to not work as intended. We fix it by running them first before passing the eventSub to app.NewClient.
This commit adds a condition to use the logger middleware in chi only when the log level is either debug or trace.
Did you run
make format && make check
?yes
Fixes #1234
Changes:
Stdout
of proc to DebugStderr
of proc to ErrorHow to test this PR:
go.mod
uncommentreplace github.com/skycoin/skywire-utilities => ../skywire-utilities
and runmake dep
go.mod
uncommentreplace github.com/skycoin/skywire-utilities => ../skywire-utilities
andreplace github.com/skycoin/dmsg => ../dmsg
and runmake dep; make build
log_level
in the config toinfo
,debug
, andtrace
and test the functionalities and apps of the visor