forked from Silverfish/proton-bridge
GODT-919 GODT-1022 GODT-947 Logs and signals
+ Added startup logs + Added wait group for update notifications + Changed hooks in debug and trace level
This commit is contained in:
@ -35,9 +35,7 @@ package main
|
||||
*/
|
||||
|
||||
import (
|
||||
"math/rand"
|
||||
"os"
|
||||
"time"
|
||||
|
||||
"github.com/ProtonMail/proton-bridge/internal/app/base"
|
||||
"github.com/ProtonMail/proton-bridge/internal/app/bridge"
|
||||
@ -54,14 +52,6 @@ const (
|
||||
)
|
||||
|
||||
func main() {
|
||||
rand.Seed(time.Now().UnixNano())
|
||||
|
||||
if err := base.MigrateFiles(configName); err != nil {
|
||||
logrus.WithError(err).Warn("Old config files could not be migrated")
|
||||
}
|
||||
|
||||
os.Args = base.StripProcessSerialNumber(os.Args)
|
||||
|
||||
base, err := base.New(
|
||||
appName,
|
||||
appUsage,
|
||||
|
||||
@ -18,9 +18,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"math/rand"
|
||||
"os"
|
||||
"time"
|
||||
|
||||
"github.com/ProtonMail/proton-bridge/internal/app/base"
|
||||
"github.com/ProtonMail/proton-bridge/internal/app/ie"
|
||||
@ -37,14 +35,6 @@ const (
|
||||
)
|
||||
|
||||
func main() {
|
||||
rand.Seed(time.Now().UnixNano())
|
||||
|
||||
if err := base.MigrateFiles(configName); err != nil {
|
||||
logrus.WithError(err).Warn("Old config files could not be migrated")
|
||||
}
|
||||
|
||||
os.Args = base.StripProcessSerialNumber(os.Args)
|
||||
|
||||
base, err := base.New(
|
||||
appName,
|
||||
appUsage,
|
||||
|
||||
Reference in New Issue
Block a user