Add missing exerr.Init() to scnserver
This commit is contained in:
parent
e397f009b9
commit
ec506a7f9e
@ -43,10 +43,19 @@ class _DebugActionsPageState extends State<DebugActionsPage> {
|
|||||||
child: const Text('Show Simple Notification'),
|
child: const Text('Show Simple Notification'),
|
||||||
),
|
),
|
||||||
SizedBox(height: 20),
|
SizedBox(height: 20),
|
||||||
|
FilledButton(
|
||||||
|
style: FilledButton.styleFrom(textStyle: const TextStyle(fontSize: 20)),
|
||||||
|
onPressed: _sendTokenToServer,
|
||||||
|
child: const Text('Send FCM Token to Server'),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void _sendTokenToServer() {
|
||||||
|
//TODO
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,6 +5,8 @@ import (
|
|||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
"github.com/rs/zerolog"
|
"github.com/rs/zerolog"
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
|
"gogs.mikescher.com/BlackForestBytes/goext/exerr"
|
||||||
|
"gogs.mikescher.com/BlackForestBytes/goext/langext"
|
||||||
"os"
|
"os"
|
||||||
"path"
|
"path"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
@ -23,6 +25,14 @@ func init() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Init(cfg Config) {
|
func Init(cfg Config) {
|
||||||
|
exerr.Init(exerr.ErrorPackageConfigInit{
|
||||||
|
ZeroLogErrTraces: langext.PTrue,
|
||||||
|
ZeroLogAllTraces: langext.PTrue,
|
||||||
|
RecursiveErrors: langext.PTrue,
|
||||||
|
ExtendedGinOutput: &cfg.ReturnRawErrors,
|
||||||
|
IncludeMetaInGinOutput: &cfg.ReturnRawErrors,
|
||||||
|
})
|
||||||
|
|
||||||
cw := zerolog.ConsoleWriter{
|
cw := zerolog.ConsoleWriter{
|
||||||
Out: os.Stdout,
|
Out: os.Stdout,
|
||||||
TimeFormat: "2006-01-02 15:04:05 Z07:00",
|
TimeFormat: "2006-01-02 15:04:05 Z07:00",
|
||||||
|
Loading…
Reference in New Issue
Block a user