Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
K
kratos-layout
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lizifeng
kratos-layout
Commits
480e29ec
Commit
480e29ec
authored
Jun 08, 2022
by
kzkzzzz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整conf
parent
d046383d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
main.go
cmd/server/main.go
+3
-3
No files found.
cmd/server/main.go
View file @
480e29ec
...
@@ -42,6 +42,9 @@ func newApp(hs *http.Server, gs *grpc.Server) *kratos.App {
...
@@ -42,6 +42,9 @@ func newApp(hs *http.Server, gs *grpc.Server) *kratos.App {
func
main
()
{
func
main
()
{
flag
.
Parse
()
flag
.
Parse
()
var
c
conf
.
Config
conf
.
LoadFromYaml
(
flagconf
,
&
c
)
logger
:=
log
.
With
(
log
.
NewStdLogger
(
os
.
Stdout
),
logger
:=
log
.
With
(
log
.
NewStdLogger
(
os
.
Stdout
),
"ts"
,
log
.
DefaultTimestamp
,
"ts"
,
log
.
DefaultTimestamp
,
"caller"
,
log
.
DefaultCaller
,
"caller"
,
log
.
DefaultCaller
,
...
@@ -53,9 +56,6 @@ func main() {
...
@@ -53,9 +56,6 @@ func main() {
)
)
log
.
SetLogger
(
logger
)
log
.
SetLogger
(
logger
)
var
c
conf
.
Config
conf
.
LoadFromYaml
(
flagconf
,
&
c
)
app
,
cleanup
,
err
:=
wireApp
(
c
.
Server
,
c
.
Data
)
app
,
cleanup
,
err
:=
wireApp
(
c
.
Server
,
c
.
Data
)
if
err
!=
nil
{
if
err
!=
nil
{
panic
(
err
)
panic
(
err
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment