mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-10 17:32:15 +01:00
improving logging
This commit is contained in:
@@ -12,6 +12,7 @@ import (
|
||||
func HTML(c echo.Context) error {
|
||||
const op = "handler.HTML"
|
||||
ctx := context.MustCastFromEchoContext(c)
|
||||
ctx.StandardLogger().DebugfOp(op, "html request")
|
||||
r := ctx.Resource()
|
||||
opts, err := r.ChromePrinterOptions()
|
||||
if err != nil {
|
||||
|
||||
@@ -12,6 +12,7 @@ import (
|
||||
func Markdown(c echo.Context) error {
|
||||
const op = "handler.Markdown"
|
||||
ctx := context.MustCastFromEchoContext(c)
|
||||
ctx.StandardLogger().DebugfOp(op, "markdown request")
|
||||
r := ctx.Resource()
|
||||
opts, err := r.ChromePrinterOptions()
|
||||
if err != nil {
|
||||
|
||||
@@ -12,6 +12,7 @@ import (
|
||||
func Merge(c echo.Context) error {
|
||||
const op = "handler.Merge"
|
||||
ctx := context.MustCastFromEchoContext(c)
|
||||
ctx.StandardLogger().DebugfOp(op, "merge request")
|
||||
r := ctx.Resource()
|
||||
opts, err := r.MergePrinterOptions()
|
||||
if err != nil {
|
||||
|
||||
@@ -12,6 +12,7 @@ import (
|
||||
func Office(c echo.Context) error {
|
||||
const op = "handler.Office"
|
||||
ctx := context.MustCastFromEchoContext(c)
|
||||
ctx.StandardLogger().DebugfOp(op, "office request")
|
||||
r := ctx.Resource()
|
||||
opts, err := r.OfficePrinterOptions()
|
||||
if err != nil {
|
||||
|
||||
@@ -13,6 +13,7 @@ import (
|
||||
func URL(c echo.Context) error {
|
||||
const op = "handler.URL"
|
||||
ctx := context.MustCastFromEchoContext(c)
|
||||
ctx.StandardLogger().DebugfOp(op, "url request")
|
||||
r := ctx.Resource()
|
||||
opts, err := r.ChromePrinterOptions()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user