update
This commit is contained in:
parent
5714f7be27
commit
55b5f55246
@ -146,15 +146,11 @@ class FSCLogger:
|
||||
self.return_and_exit(Response(id=request.id, error="invalid config (missing required field(s) '{}'"
|
||||
")".format(', '.join(missing_fields))))
|
||||
self.log("conf: " + conf['logfile'])
|
||||
|
||||
|
||||
# validate fields
|
||||
if conf['logfile'] == "":
|
||||
invalid_fields.append('logfile')
|
||||
else:
|
||||
try:
|
||||
test = int(conf['logfile'])
|
||||
except ValueError as _:
|
||||
invalid_fields.append('logfile')
|
||||
|
||||
|
||||
if len(invalid_fields) > 0:
|
||||
# return an error as at least one field seems invalid
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user