grim/convey

Parents ddbcc67071d7
Children 82699397c57a
Write warning, error, and fatal log messages to stderr. Fixes #156
--- a/ChangeLog Sun Jan 14 06:11:13 2018 -0600
+++ b/ChangeLog Sun Jan 14 06:17:38 2018 -0600
@@ -1,10 +1,10 @@
0.13.1dev:
- * Nothing yet! Be the first!!
+ * Write warning, error, and fatal log messages to stderr. Fixed #156
0.13.0: 20180114
* Fixed an issue in docker.ParseImage where something like convey/workspace
would in correctly determine the registry to be convey and the image to be
- workspace.
+ workspace. Fixed #157
* Changed the way subcommands are run. Fixed #153
* Added `run` sub-command.
* Deprecated `--graphviz`, use `graphviz` instead.
--- a/logging/logging.go Sun Jan 14 06:11:13 2018 -0600
+++ b/logging/logging.go Sun Jan 14 06:17:38 2018 -0600
@@ -18,6 +18,8 @@
package logging
import (
+ "os"
+
"github.com/aphistic/gomol"
"github.com/aphistic/gomol-console"
)
@@ -29,6 +31,10 @@
func setupConsole(color bool) (gomol.Logger, error) {
cfg := gomolconsole.NewConsoleLoggerConfig()
+ cfg.WarningWriter = os.Stderr
+ cfg.ErrorWriter = os.Stderr
+ cfg.FatalWriter = os.Stderr
+
logger, err := gomolconsole.NewConsoleLogger(cfg)
if err != nil {
return nil, err