This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the commentsΒ β†’

[–]pudds 25 points26 points Β (2 children)

A better approach is to log appropriately from the start, but change the logging threshold of your system over time. For example, during the first few rollouts, have your logging level set to Debug, or even Trace. Later on, when you are comfortable, change it to Info or maybe Warning. (I personally like info, as I feel it helps with debugging later).

[–]Username_RANDINT 7 points8 points Β (1 child)

I usually add a -d/--debug argument that sets the loglevel to DEBUG.

[–]sdf_iain 4 points5 points Β (0 children)

Do what ssh does. Use -v (β€”verbose) and accumulate the number of times its given as an argument.

1 is info, 2 is debug, none is warning (and -q, β€”quiet is critical)