-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.example.json
50 lines (38 loc) · 1.64 KB
/
config.example.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
* This file is passed through jsmin before it is used, so comments are fine.
* Take a copy of this file and name it config.example. Change the settings below to
* meet your requirements.
*/
{
"config":
{
// Threshold size of a page or asset before it's deemed too big and a warning is logged.
"acceptable_size": 100,
// Threshold response time for a page or asset before it's deemed to be taking too long.
"acceptable_time": 3,
// Should we get pages? If false only the index of each site will be gotten.
"get_pages": false,
"asset_types": ["image", "stylesheet", "script"],
/* When the server takes too long to serve a page or asset, should we request a second time to see if speed is
* any better? This can be handy for e.g. asp.net applications which are often slow right after app pool recycle*/
"give_second_chance": true,
// Where to output logs to. If it's an empty string, logs will go to the console.
"logfile_location": "gyroscope.log",
// a: append. w: overwrite
"logfile_mode": "w",
/*CRITICAL = 50
ERROR = 40
WARNING = 30
INFO = 20
DEBUG = 10
NOTSET = 0*/
"log_level": 30,
// When a page or resource is too big: should that be logged?
"log_too_big": true,
// When the server takes too long to respond to a request for a page or asset: should that be logged?
"log_too_slow": true,
// Path to json file to use for list of web sites. If this setting is not specified then the sites.json file in
// the same directory as main.py is used.
"sites_file": "sites.json"
}
}