From fa647c6645f74e3c0e6fded658f5f8b5882b0e01 Mon Sep 17 00:00:00 2001 From: Will Hawkins Date: Wed, 4 May 2022 10:45:06 -0400 Subject: Fully support self-signed certificates (and add debug levels) Two unrelated changes: 1. Add full support for self-signed HTTPS certificates on the server 2. Add support for multiple log levels: So far we only use one, but adding support for additional levels will help us tier the levels to filter out excessive messages. --- constants/constants.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'constants') diff --git a/constants/constants.go b/constants/constants.go index 1a060dd..02038a3 100644 --- a/constants/constants.go +++ b/constants/constants.go @@ -31,3 +31,12 @@ var ( // The default URL for the config host. DefaultConfigHost string = "networkquality.example.com" ) + +type DebugLevel int8 + +const ( + NoDebug DebugLevel = iota + Debug + Warn + Error +) -- cgit v1.2.3