Re-enable console logging by default (#4210)
* Re-enable console logging by default * Disable LogSettings.EnableConsole while packaging release * Updated defaults in config.json to match the ones generated by the server * Fixed make package and changed it to reduce the log level instead of disabling console logging entirely
Этот коммит содержится в:
коммит произвёл
enahum
родитель
219f4e36e5
Коммит
3660f78733
21
Makefile
21
Makefile
@@ -121,16 +121,16 @@ stop-docker:
|
|||||||
echo stopping mattermost-postgres; \
|
echo stopping mattermost-postgres; \
|
||||||
docker stop mattermost-postgres > /dev/null; \
|
docker stop mattermost-postgres > /dev/null; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@if [ $(shell docker ps -a | grep -ci mattermost-openldap) -eq 1 ]; then \
|
@if [ $(shell docker ps -a | grep -ci mattermost-openldap) -eq 1 ]; then \
|
||||||
echo stopping mattermost-openldap; \
|
echo stopping mattermost-openldap; \
|
||||||
docker stop mattermost-openldap > /dev/null; \
|
docker stop mattermost-openldap > /dev/null; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@if [ $(shell docker ps -a | grep -ci mattermost-webrtc) -eq 1 ]; then \
|
@if [ $(shell docker ps -a | grep -ci mattermost-webrtc) -eq 1 ]; then \
|
||||||
echo stopping mattermost-webrtc; \
|
echo stopping mattermost-webrtc; \
|
||||||
docker stop mattermost-webrtc > /dev/null; \
|
docker stop mattermost-webrtc > /dev/null; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
clean-docker:
|
clean-docker:
|
||||||
@echo Removing docker containers
|
@echo Removing docker containers
|
||||||
@@ -154,16 +154,16 @@ clean-docker:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
@if [ $(shell docker ps -a | grep -ci mattermost-webrtc) -eq 1 ]; then \
|
@if [ $(shell docker ps -a | grep -ci mattermost-webrtc) -eq 1 ]; then \
|
||||||
echo removing mattermost-webrtc; \
|
echo removing mattermost-webrtc; \
|
||||||
docker stop mattermost-webrtc > /dev/null; \
|
docker stop mattermost-webrtc > /dev/null; \
|
||||||
docker rm -v mattermost-webrtc > /dev/null; \
|
docker rm -v mattermost-webrtc > /dev/null; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
check-client-style:
|
check-client-style:
|
||||||
@echo Checking client style
|
@echo Checking client style
|
||||||
|
|
||||||
cd $(BUILD_WEBAPP_DIR) && $(MAKE) check-style
|
cd $(BUILD_WEBAPP_DIR) && $(MAKE) check-style
|
||||||
|
|
||||||
check-server-style:
|
check-server-style:
|
||||||
@echo Running GOFMT
|
@echo Running GOFMT
|
||||||
$(eval GOFMT_OUTPUT := $(shell gofmt -d -s api/ model/ store/ utils/ manualtesting/ einterfaces/ mattermost.go 2>&1))
|
$(eval GOFMT_OUTPUT := $(shell gofmt -d -s api/ model/ store/ utils/ manualtesting/ einterfaces/ mattermost.go 2>&1))
|
||||||
@@ -298,6 +298,9 @@ package: build build-client
|
|||||||
cp -RL templates $(DIST_PATH)
|
cp -RL templates $(DIST_PATH)
|
||||||
cp -RL i18n $(DIST_PATH)
|
cp -RL i18n $(DIST_PATH)
|
||||||
|
|
||||||
|
@# Disable developer settings
|
||||||
|
sed -i'' 's|"ConsoleLevel": "DEBUG",|"ConsoleLevel": "INFO",|g' $(DIST_PATH)/config/config.json;
|
||||||
|
|
||||||
@# Package webapp
|
@# Package webapp
|
||||||
mkdir -p $(DIST_PATH)/webapp/dist
|
mkdir -p $(DIST_PATH)/webapp/dist
|
||||||
cp -RL $(BUILD_WEBAPP_DIR)/dist $(DIST_PATH)/webapp
|
cp -RL $(BUILD_WEBAPP_DIR)/dist $(DIST_PATH)/webapp
|
||||||
|
|||||||
@@ -63,7 +63,7 @@
|
|||||||
"AtRestEncryptKey": ""
|
"AtRestEncryptKey": ""
|
||||||
},
|
},
|
||||||
"LogSettings": {
|
"LogSettings": {
|
||||||
"EnableConsole": false,
|
"EnableConsole": true,
|
||||||
"ConsoleLevel": "DEBUG",
|
"ConsoleLevel": "DEBUG",
|
||||||
"EnableFile": true,
|
"EnableFile": true,
|
||||||
"FileLevel": "INFO",
|
"FileLevel": "INFO",
|
||||||
@@ -125,8 +125,9 @@
|
|||||||
"EmailBatchingInterval": 30
|
"EmailBatchingInterval": 30
|
||||||
},
|
},
|
||||||
"RateLimitSettings": {
|
"RateLimitSettings": {
|
||||||
"EnableRateLimiter": true,
|
"Enable": false,
|
||||||
"PerSec": 10,
|
"PerSec": 10,
|
||||||
|
"MaxBurst": 100,
|
||||||
"MemoryStoreSize": 10000,
|
"MemoryStoreSize": 10000,
|
||||||
"VaryByRemoteAddr": true,
|
"VaryByRemoteAddr": true,
|
||||||
"VaryByHeader": ""
|
"VaryByHeader": ""
|
||||||
@@ -239,4 +240,4 @@
|
|||||||
"TurnUsername": "",
|
"TurnUsername": "",
|
||||||
"TurnSharedKey": ""
|
"TurnSharedKey": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Ссылка в новой задаче
Block a user