优化日志
This commit is contained in:
parent
e84f409431
commit
7b78ddeeb2
@ -59,7 +59,6 @@ RemotePath="/home/ubuntu/game"
|
|||||||
RemoteFile="$RemotePath/$FILE"
|
RemoteFile="$RemotePath/$FILE"
|
||||||
LocalFile="bin/$FILE"
|
LocalFile="bin/$FILE"
|
||||||
|
|
||||||
rm -rf '$LocalFile'
|
|
||||||
plink -ssh -batch -pw "$Password" "$Username@$Host" "rm -f '$RemoteFile'"
|
plink -ssh -batch -pw "$Password" "$Username@$Host" "rm -f '$RemoteFile'"
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
echo "删除文件成功"
|
echo "删除文件成功"
|
||||||
|
@ -19,7 +19,7 @@ type ClientConfig struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func initLog() {
|
func initLog() {
|
||||||
log.Open("client.log", log.DebugL)
|
log.Open("./log/client.log", log.DebugL)
|
||||||
}
|
}
|
||||||
|
|
||||||
func LoadConfig(GitCommit, GitBranch, BuildDate string) {
|
func LoadConfig(GitCommit, GitBranch, BuildDate string) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user