File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 13
13
from fabric import task
14
14
15
15
import logging
16
+ import sys
16
17
17
18
18
19
def getObserveConfig (config , environment ):
@@ -43,7 +44,12 @@ def getCurlCommand(options):
43
44
if "FLAGS" in options :
44
45
FLAGS .update (options ["FLAGS" ])
45
46
46
- return f'curl "https://raw.githubusercontent.com/observeinc/linux-host-configuration-scripts/{ options ["BRANCH" ]} /observe_configure_script.sh" | bash -s -- --customer_id { YOUR_CUSTOMERID } --ingest_token { YOUR_DATA_STREAM_TOKEN } --observe_host_name https://{ YOUR_CUSTOMERID } .collect.{ DOMAIN } .com/ --config_files_clean { FLAGS ["config_files_clean" ]} --ec2metadata { FLAGS ["ec2metadata" ]} --datacenter { FLAGS ["datacenter" ]} --appgroup { FLAGS ["appgroup" ]} '
47
+ logging .info (
48
+ "curl command = %s" ,
49
+ f'curl "https://raw.githubusercontent.com/observeinc/linux-host-configuration-scripts/{ options ["BRANCH" ]} /observe_configure_script.sh" | bash -s -- --customer_id { YOUR_CUSTOMERID } --ingest_token ****** --observe_host_name https://{ YOUR_CUSTOMERID } .collect.{ DOMAIN } .com/ --config_files_clean { FLAGS ["config_files_clean" ]} --ec2metadata { FLAGS ["ec2metadata" ]} --datacenter { FLAGS ["datacenter" ]} --appgroup { FLAGS ["appgroup" ]} ' ,
50
+ )
51
+
52
+ return f'curl "https://raw.githubusercontent.com/observeinc/linux-host-configuration-scripts/{ options ["BRANCH" ]} /observe_configure_script.sh" | bash -s -- --customer_id { YOUR_CUSTOMERID } --ingest_token { YOUR_DATA_STREAM_TOKEN } --observe_host_name https://{ YOUR_CUSTOMERID } .collect.{ DOMAIN } .com/ --config_files_clean { FLAGS ["config_files_clean" ]} --ec2metadata { FLAGS ["ec2metadata" ]} --datacenter { FLAGS ["datacenter" ]} --appgroup { FLAGS ["appgroup" ]} '
47
53
48
54
49
55
# your "parallelness"
@@ -128,9 +134,10 @@ def test(
128
134
log_path = log_file_name (log_path_pattern )
129
135
130
136
logging .basicConfig (
131
- filename = log_path ,
137
+ # filename=log_path,
132
138
encoding = "utf-8" ,
133
139
level = log_levels [log_level ],
140
+ handlers = [logging .FileHandler (log_path ), logging .StreamHandler (sys .stdout )],
134
141
)
135
142
136
143
logging .info (seperator )
You can’t perform that action at this time.
0 commit comments