Logging improvements
This commit is contained in:
parent
8da75f190c
commit
4a51aa27c6
|
@ -72,8 +72,10 @@
|
|||
#
|
||||
# Exit the VM with ctrl+a x, or switch to the qemu console with ctrl+a c and `quit`.
|
||||
###
|
||||
|
||||
'';
|
||||
users.motd = ''
|
||||
|
||||
###
|
||||
# To set a password for the web interface, run `intake passwd` and set a password.
|
||||
#
|
||||
|
@ -83,5 +85,6 @@
|
|||
#
|
||||
# Updating a source will also trigger intake to update the user crontab. If you run `crontab -l`, you should see that the `currenttime` source has a crontab entry. You can change this source's cron schedule in the source config.
|
||||
###
|
||||
|
||||
'';
|
||||
}
|
||||
|
|
|
@ -122,8 +122,9 @@ def cmd_update(cmd_args):
|
|||
if not args.dry_run:
|
||||
update_items(source, items)
|
||||
else:
|
||||
print("Update returned", len(items), "items:")
|
||||
for item in items:
|
||||
print("Item:", item._item, file=sys.stderr)
|
||||
print(" Item:", item._item, file=sys.stderr)
|
||||
except InvalidConfigException as ex:
|
||||
print("Could not fetch", args.source, file=sys.stderr)
|
||||
print(ex, file=sys.stderr)
|
||||
|
|
|
@ -197,7 +197,7 @@ def _read_stdout(process: Popen, output: list) -> None:
|
|||
while True:
|
||||
data = process.stdout.readline()
|
||||
if data:
|
||||
print(f"[stdout] <{repr(data)}>", file=sys.stderr)
|
||||
print(f"[stdout] {data.rstrip()}", file=sys.stderr)
|
||||
output.append(data)
|
||||
if process.poll() is not None:
|
||||
break
|
||||
|
@ -211,7 +211,7 @@ def _read_stderr(process: Popen) -> None:
|
|||
while True:
|
||||
data = process.stderr.readline()
|
||||
if data:
|
||||
print(f"[stderr] <{repr(data)}>", file=sys.stderr)
|
||||
print(f"[stderr] {data.rstrip()}", file=sys.stderr)
|
||||
if process.poll() is not None:
|
||||
break
|
||||
|
||||
|
|
Loading…
Reference in New Issue