Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
lichenggang
/
web_log
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
89eccf1d
authored
Dec 31, 2020
by
lichenggang
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
用户自行配置
parent
15cf07b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
config/config.go
config/config.go
View file @
89eccf1d
...
...
@@ -19,10 +19,10 @@ func GetCurrentPath() string {
return
strings
.
Replace
(
dir
,
"
\\
"
,
"/"
,
-
1
)
}
func
InitConfig
()
{
flag
.
StringVar
(
&
Directory
,
"dir"
,
"/data/inotify_logs"
,
"监听目录"
)
Directory
=
"E:
\\
test_logs"
// directory of the log
flag
.
StringVar
(
&
Directory
,
"d"
,
"/data/inotify_logs"
,
"监听目录"
)
flag
.
StringVar
(
&
Port
,
"port"
,
"9997"
,
"监听端口"
)
flag
.
Parse
()
Directory
=
"E:
\\
test_logs"
// directory of the log
logenv
:=
os
.
Getenv
(
"GOLOGENV"
)
if
logenv
==
"TEST"
{
Directory
=
"/data/soft/bigdatav3.0/test_rsync_log"
...
...
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