File tree Expand file tree Collapse file tree 3 files changed +19
-1
lines changed
pythonkr_backend/pythonkr_backend/settings Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ if [ -f ${PID_FILE} ]; then
41
41
while pgrep -u pk gunicorn > /dev/null && [ $timeout -lt 30 ]; do
42
42
sleep 1
43
43
timeout=$(( timeout+ 1 ))
44
+ echo " Waiting $timeout seconds"
44
45
done
45
46
fi
46
47
Original file line number Diff line number Diff line change 13
13
from pathlib import Path
14
14
import os
15
15
16
+
16
17
# Build paths inside the project like this: BASE_DIR / 'subdir'.
17
18
BASE_DIR = Path (__file__ ).resolve ().parent .parent .parent
18
19
186
187
"0.0.0.0" ,
187
188
]
188
189
190
+ # LOGGING
191
+
192
+ LOGGING = {
193
+ "version" : 1 ,
194
+ "disable_existing_loggers" : False ,
195
+ "handlers" : {
196
+ "console" : {
197
+ "class" : "logging.StreamHandler" ,
198
+ },
199
+ },
200
+ "root" : {
201
+ "handlers" : ["console" ],
202
+ "level" : "INFO" ,
203
+ },
204
+ }
205
+
189
206
# import logfire
190
207
# setup logfire
191
208
#logfire.configure(environment='base', service_name="web")
Original file line number Diff line number Diff line change 28
28
BUILD_DIR = os .path .join ("/home/pk/bakery_static" , "build" )
29
29
30
30
31
- logger = logging .getLogger (__name__ )
31
+ logger = logging .getLogger ('root' )
32
32
33
33
# service_version
34
34
sha_service_version = os .environ .get ("SHA" )
You can’t perform that action at this time.
0 commit comments