summaryrefslogtreecommitdiff
path: root/internal/log/caller.go
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2023-05-28 13:08:35 +0100
committerLibravatar GitHub <noreply@github.com>2023-05-28 14:08:35 +0200
commit5faeb4de2032e112ab49751eeeb906ac43826f3d (patch)
treeea94b86f27384954ff93aec864b13b83c7f46db0 /internal/log/caller.go
parent[docs] Update + simplify roadmap, revise beta estimate (#1826) (diff)
downloadgotosocial-5faeb4de2032e112ab49751eeeb906ac43826f3d.tar.xz
[chore] tidy up media manager, add calling func to errors, build-script improvements (#1835)
* media manager tidy-up: de-interface and remove unused PostDataFunc Signed-off-by: kim <grufwub@gmail.com> * remove last traces of media.Manager being an interface Signed-off-by: kim <grufwub@gmail.com> * update error to provide caller, allow tuneable via build tags Signed-off-by: kim <grufwub@gmail.com> * remove kim-specific build script changes Signed-off-by: kim <grufwub@gmail.com> * fix merge conflicts Signed-off-by: kim <grufwub@gmail.com> * update build-script to support externally setting build variables Signed-off-by: kim <grufwub@gmail.com> --------- Signed-off-by: kim <grufwub@gmail.com>
Diffstat (limited to 'internal/log/caller.go')
-rw-r--r--internal/log/caller.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/internal/log/caller.go b/internal/log/caller.go
index 8d5c67643..b6c2416cd 100644
--- a/internal/log/caller.go
+++ b/internal/log/caller.go
@@ -34,12 +34,7 @@ func Caller(depth int) string {
return ""
}
- // return formatted name
- return callername(fn)
-}
-
-// callername generates a human-readable calling function name.
-func callername(fn *runtime.Func) string {
+ // Get func name.
name := fn.Name()
// Drop all but the package name and function name, no mod path