mirror of
https://github.com/docker/compose.git
synced 2025-04-08 17:05:13 +02:00
Logs are available for all log drivers except for none.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
ce729b0721
commit
f67503d9fd
@ -145,7 +145,7 @@ class Container(object):
|
||||
@property
|
||||
def has_api_logs(self):
|
||||
log_type = self.log_driver
|
||||
return not log_type or log_type == 'json-file'
|
||||
return not log_type or log_type != 'none'
|
||||
|
||||
def attach_log_stream(self):
|
||||
"""A log stream can only be attached if the container uses a json-file
|
||||
|
Loading…
x
Reference in New Issue
Block a user