@@ -78,6 +78,7 @@ def main():
78
78
parser .add_argument ('--max_buffered_tuples' , required = True , help = 'Maximum number of Buffered tuples' )
79
79
parser .add_argument ('--logging_directory' , required = True , help = 'Logging Directory' )
80
80
parser .add_argument ('--logging_file' , required = True , help = 'Log file name' )
81
+ parser .add_argument ('--logging_level' , required = False , help = 'Logging level' )
81
82
parser .add_argument ('--logging_config_file' , required = True , help = 'Config file for logging' )
82
83
parser .add_argument ('--expected_healthcheck_interval' , required = True , help = 'Expected time in seconds between health checks' , type = int )
83
84
parser .add_argument ('--secrets_provider' , required = False , help = 'The classname of the secrets provider' )
@@ -154,7 +155,15 @@ def main():
154
155
log_file = os .path .join (args .logging_directory ,
155
156
util .getFullyQualifiedFunctionName (function_details .tenant , function_details .namespace , function_details .name ),
156
157
"%s-%s.log" % (args .logging_file , args .instance_id ))
157
- log .init_logger (logging .INFO , log_file , args .logging_config_file )
158
+ logging_level = {"notset" : logging .NOTSET ,
159
+ "debug" : logging .DEBUG ,
160
+ "info" : logging .INFO ,
161
+ "warn" : logging .WARNING ,
162
+ "warning" : logging .WARNING ,
163
+ "error" : logging .ERROR ,
164
+ "critical" : logging .CRITICAL ,
165
+ "fatal" : logging .CRITICAL }.get (args .logging_level , None )
166
+ log .init_logger (logging_level , log_file , args .logging_config_file )
158
167
159
168
Log .info ("Starting Python instance with %s" % str (args ))
160
169
0 commit comments