Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9311786
D4680.id16607.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
D4680.id16607.diff
View Options
diff --git a/swh/vault/cli.py b/swh/vault/cli.py
--- a/swh/vault/cli.py
+++ b/swh/vault/cli.py
@@ -31,9 +31,6 @@
type=click.Path(exists=True, dir_okay=False,),
help="Configuration file.",
)
-@click.option(
- "--no-stdout", is_flag=True, default=False, help="Do NOT output logs on the console"
-)
@click.option(
"--host",
default="0.0.0.0",
@@ -54,19 +51,12 @@
help="Indicates if the server should run in debug mode",
)
@click.pass_context
-def serve(ctx, config_file, no_stdout, host, port, debug):
+def serve(ctx, config_file, host, port, debug):
import aiohttp
- from swh.scheduler.celery_backend.config import setup_log_handler
from swh.vault.api.server import make_app_from_configfile
ctx.ensure_object(dict)
- setup_log_handler(
- loglevel=ctx.obj.get("log_level", logging.INFO),
- colorize=False,
- format="[%(levelname)s] %(name)s -- %(message)s",
- log_console=not no_stdout,
- )
try:
app = make_app_from_configfile(config_file, debug=debug)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jul 2, 10:31 AM (2 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3220056
Attached To
D4680: cli: Remove deprecated logging configuration
Event Timeline
Log In to Comment