Re: [go-nuts] Remove path from error messages

2018-10-17 Thread Richard Masci
That is what I was looking for!! Thanks!! On Tue, Oct 16, 2018 at 4:16 PM Ian Lance Taylor wrote: > On Tue, Oct 16, 2018 at 11:57 AM, Rich wrote: > > Hi and Thanks Peter for your reply! I have compiled this on my mac, and > am > > running it on a linux system. I compile it like this: > > > >

Re: [go-nuts] Remove path from error messages

2018-10-16 Thread Ian Lance Taylor
On Tue, Oct 16, 2018 at 11:57 AM, Rich wrote: > Hi and Thanks Peter for your reply! I have compiled this on my mac, and am > running it on a linux system. I compile it like this: > > GOOS=linux GOARCH=amd64 go build -o binaries/linux64/mysqlrun mysqlrun.go > > Then I copy that binary to the ser

Re: [go-nuts] Remove path from error messages

2018-10-16 Thread Rich
Hi and Thanks Peter for your reply! I have compiled this on my mac, and am running it on a linux system. I compile it like this: GOOS=linux GOARCH=amd64 go build -o binaries/linux64/mysqlrun mysqlrun.go Then I copy that binary to the server I am running it on and if there is an error -- it s

Re: [go-nuts] Remove path from error messages

2018-10-16 Thread Peter Bourgon
Error messages don't include any contextual information by default. If the path to a Go file is in there, it's because whatever created the error message (or modified it at some point) put it there. Where is that error created, and what touches it as it flows through the call stack to the logging s

[go-nuts] Remove path from error messages

2018-10-16 Thread Rich
I apologize if this has been asked before but I searched google and this group and didn't find it. How do you remove the path from the error messages? So I have a valid error: 2018/10/16 18:13:12 [error] in main.checkMaster[/Users/rich/go/mysqlrun/mysqlrun.go:739] Error 1045: Access denied f