reduce logs for non-debug runtime
This commit is contained in:
1 parent
5103d87211
commit
d66be97922
39 files changed
+182
-31
No files matched your search
@@ -39,7 +39,7 @@ type iosStatusEmitter struct {
|
||||
statusFn func(string)
|
||||
}
|
||||
|
||||
func (e *iosStatusEmitter) EmitStatus(status string) { e.statusFn(status) }
|
||||
func (e *iosStatusEmitter) EmitStatus(status string) { e.statusFn(status) }
|
||||
func (e *iosStatusEmitter) EmitStatusError(msg string) { e.statusFn("ERROR:" + msg) }
|
||||
|
||||
type iosCacheStore struct {
|
||||
@@ -47,7 +47,7 @@ type iosCacheStore struct {
|
||||
}
|
||||
|
||||
func (c *iosCacheStore) Save(key string, value string) { c.callback.SaveCache(key, value) }
|
||||
func (c *iosCacheStore) Load(key string) string { return c.callback.LoadCache(key) }
|
||||
func (c *iosCacheStore) Load(key string) string { return c.callback.LoadCache(key) }
|
||||
|
||||
func makeOnConnected(socksPort int, socksUser, socksPass string, logFn func(string, ...any), callback HeadlessCallback) func(tunnel.DataTunnel) {
|
||||
return func(tun tunnel.DataTunnel) {
|
||||
@@ -117,6 +117,8 @@ func makeHelpers(callback HeadlessCallback) (func(string, ...any), joiner.Resolv
|
||||
func init() {
|
||||
}
|
||||
|
||||
func SetDebug(enabled bool) { common.Debug = enabled }
|
||||
|
||||
func StartWBStreamHeadless(socksPort int, socksUser, socksPass string, callback HeadlessCallback) {
|
||||
StopHeadless()
|
||||
|
||||
|
||||
Reference in new issue
Block a user