gladiusio / gladius-node

All services to run a Gladius Node
GNU General Public License v3.0
36 stars 11 forks source link

gladius-controld and gladius-networkd prints error message instead of warning message with missing configuration file #77

Closed sebastianhutter closed 5 years ago

sebastianhutter commented 6 years ago

Whats happening: When gladius-controld and gladius-networkd starts and it cant't find any gladius-[controld|netword].toml configuration file the process prints an error message but continues to work normally.

$ gladius-controld
2018/09/02 13:39:32 Cannot find config file: Config File "gladius-controld" Not Found in "[/gladius]". Using defaults
2018/09/02 13:39:32

Unable to find gladius-controld.toml in project root, or default directories below.
2018/09/02 13:39:32

Using Default Node Manager Configuration
2018/09/02 13:39:32 error: Config File "gladius-controld" Not Found in "[/gladius]"
Starting API at http://localhost:3001
$ exec gladius-networkd
INFO[0000] Loading config
2018/09/02 13:41:11 Cannot find config file: Config File "gladius-networkd" Not Found in "[/ /gladius]". Using defaults
INFO[0000] Starting content server on port: 8080
2018/09/02 13:41:11 error: Config File "gladius-networkd" Not Found in "[/ /gladius]"
WARN[0000] Error updating disk content                   err="Couldn't sign message with contorld, wallet could be locked"
INFO[0000] Started HTTP server.

What do you expect: The process should print a warning message and not an error message. The

Further information: none

overtfuture commented 5 years ago

Added to our backlog, should be implemented in 1 to 2 releases from now.