Feed in a Sauce Connect Proxy log, get back general info and next steps to troubleshoot any problems. -v, -vv, or zero verbosity, doesn't matter. More data is better in general though.
brew tap mdsauce/schelper https://github.com/mdsauce/schelper-brew
brew install schelper
Using Homebrew run the above two commands. Should take about thirty seconds if you have Homebrew installed.
If you don't have Homebrew or a Mac then go get mdsauce/schelper
should work. Cloning/forking the repo then doing a go build
or go install
will also work as long as you have golang installed.
$ schelper sclog ~/absolute/or/relative/path/to/sc.log
$ schelper -h
or --help
to get more info about your options and default settings.
$ schelper sclog -h
or --help
to get more info about specifying the SC log.
Add a -v
or --verbose
flag to stop suppression of redundant output. May be messy.
If you wish to send pull requests adding more "known problems" that I missed read below.
A Disruption
is currently
type Disruption struct {
Category string
GeneralSteps string
Info string
}
Go to disruptions.go
and add a new local variable to the package with this format. Disruptions should be general like what an organ is to a body.
var <local name of disruption> = Disruption{
Category: "Overarching category. Avoid conflicts as much as you can.",
GeneralSteps: "In general, what should you do when you see this Category of problem?",
Info: "The WHY? of this category. What's going on? Any background info? Anything important or useful?"}
A Known Problem
is currently
type KnownProblem struct {
Name string
Disruption Disruption
Logs []byte
NextSteps string
}
Go to knownProblems.go
and add an entry to the AllProblems()
function.
var <name of problem> = KnownProblem{Name: "name-of-problem-w-hyphens", Disruption: localDisruptionVariable, Logs: []byte("add as much detail as possible here. One big string with each word separated by spaces EXACTLY as it appears in the log. NO LINEBREAKS!!! NO NEWLINES!!! Just one long continuous string"), NextSteps: `Anything with the '`' is a string literal. Will literally be printed out as it appears here. Feel free to play w/ formatting.`}
// Append your problem to []AllProblems (slice, like an array)
AllProblems = append(AllProblems, <name of problem>)
Add a Test to comparison_test.go
if you want to be sure it works as intended. Same format for every test.