Only warn about unexpected parent process when not in dev mode

This commit is contained in:
Daniel 2022-04-26 15:02:39 +02:00
parent 9a39caf22b
commit d0e3107ea5

View file

@ -230,7 +230,10 @@ func warnOnIncorrectParentPath() {
return
}
if parentName != expectedFileName {
log.Warningf("updates: parent process does not seem to be portmaster-start, name is %s", parentName)
// Only warn about this if not in dev mode.
if !devMode() {
log.Warningf("updates: parent process does not seem to be portmaster-start, name is %s", parentName)
}
// TODO(ppacher): once we released a new installer and folks had time
// to update we should send a module warning/hint to the