Skip to content

Commit

Permalink
Make connection message a NOTE for consistency
Browse files Browse the repository at this point in the history
When disconnected a NOTE log entry is made in the log, when connected it just prints which seems inconsistent to me:

```
[2020-06-01T11:50:55] INFO: AES256-GCM-SHA384       TLSv1.2 Kx=RSA      Au=RSA  Enc=AESGCM(256) Mac=AEAD

	/home/jonathan/barrier/src/lib/net/SecureSocket.cpp,872
connected to server
[2020-06-01T11:52:43] INFO: entering screen
```
vs.
```
[2020-06-01T11:59:01] NOTE: disconnected from server
	/home/jonathan/barrier/src/lib/barrier/ClientApp.cpp,315
```
Since everything else logs with a timestamp I suggest changing this to NOTE as well for connection events being logged.
  • Loading branch information
jmartens authored Jun 1, 2020
1 parent b373d8e commit 583b2cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/barrier/ClientApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ ClientApp::scheduleClientRestart(double retryTime)
void
ClientApp::handleClientConnected(const Event&, void*)
{
LOG((CLOG_PRINT "connected to server"));
LOG((CLOG_NOTE "connected to server"));
resetRestartTimeout();
updateStatus();
}
Expand Down

0 comments on commit 583b2cb

Please sign in to comment.