mirror of
https://github.com/fosrl/olm.git
synced 2026-02-08 05:56:41 +00:00
5
main.go
5
main.go
@@ -15,6 +15,7 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/fosrl/newt/logger"
|
"github.com/fosrl/newt/logger"
|
||||||
|
"github.com/fosrl/newt/updates"
|
||||||
"github.com/fosrl/newt/websocket"
|
"github.com/fosrl/newt/websocket"
|
||||||
"github.com/fosrl/olm/httpserver"
|
"github.com/fosrl/olm/httpserver"
|
||||||
"github.com/fosrl/olm/peermonitor"
|
"github.com/fosrl/olm/peermonitor"
|
||||||
@@ -326,6 +327,10 @@ func runOlmMainWithArgs(ctx context.Context, args []string) {
|
|||||||
logger.Info("Olm version " + olmVersion)
|
logger.Info("Olm version " + olmVersion)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if err := updates.CheckForUpdate("fosrl", "olm", olmVersion); err != nil {
|
||||||
|
logger.Debug("Failed to check for updates: %v", err)
|
||||||
|
}
|
||||||
|
|
||||||
// Log startup information
|
// Log startup information
|
||||||
logger.Debug("Olm service starting...")
|
logger.Debug("Olm service starting...")
|
||||||
logger.Debug("Parameters: endpoint='%s', id='%s', secret='%s'", endpoint, id, secret)
|
logger.Debug("Parameters: endpoint='%s', id='%s', secret='%s'", endpoint, id, secret)
|
||||||
|
|||||||
Reference in New Issue
Block a user