refactor(client): убрать deprecated-теги с package-level логгеров
cmd/client — однопроцессный CLI; package-level Log+SetLogger остаётся каноническим API. captcha.Solve по-прежнему принимает явный логгер для DI. Также осовременен backoffSteps через min().
This commit is contained in:
1 parent
5735b4a297
commit
6b8b82f530
3 files changed
+2
-20
No files matched your search
@@ -35,14 +35,9 @@ var Debug bool
|
||||
|
||||
// Log is the package-level logger; defaults to no-op. main wires it via
|
||||
// SetLogger so manual-captcha output respects -debug and levels.
|
||||
//
|
||||
// Deprecated: future refactoring should inject the logger via a Solver struct.
|
||||
// SetLogger remains for backward compatibility.
|
||||
var Log logx.Logger = logx.Nop()
|
||||
|
||||
// SetLogger installs a logger for this package.
|
||||
//
|
||||
// Deprecated: prefer a Solver struct with an explicit Logger field.
|
||||
func SetLogger(l logx.Logger) { Log = logx.OrNop(l) }
|
||||
|
||||
const captchaListenPort = "8765"
|
||||
|
||||
Reference in new issue
Block a user