github.com/holochain/holochain-proto@v0.1.0-alpha-26.0.20200915073418-5c83169c9b5b/action_debug.go (about)

     1  // Copyright (C) 2013-2018, The MetaCurrency Project (Eric Harris-Braun, Arthur Brock, et. al.)
     2  // Use of this source code is governed by GPLv3 found in the LICENSE file
     3  //----------------------------------------------------------------------------------------
     4  //
     5  package holochain
     6  
     7  //------------------------------------------------------------
     8  // Debug
     9  
    10  type APIFnDebug struct {
    11  	msg string
    12  }
    13  
    14  func (a *APIFnDebug) Name() string {
    15  	return "debug"
    16  }
    17  
    18  func (a *APIFnDebug) Args() []Arg {
    19  	return []Arg{{Name: "value", Type: ToStrArg}}
    20  }
    21  
    22  func (a *APIFnDebug) Call(h *Holochain) (response interface{}, err error) {
    23  	h.Config.Loggers.App.Log(a.msg)
    24  	return
    25  }