Skip to content

Commit

Permalink
tkt-42815: fix(jail/logging): We want iocage to be in debug mode for …
Browse files Browse the repository at this point in the history
…operations (#2644)

* fix(jail/logging): We want iocage to be in debug mode for operations

Let's us troubleshoot any jail problems easier

Ticket: #42815

* Move this to JailService
  • Loading branch information
Brandon Schneider committed Feb 22, 2019
1 parent cc23033 commit e132e27
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/middlewared/middlewared/plugins/jail.py
Expand Up @@ -36,6 +36,12 @@ class JailService(CRUDService):
class Config:
process_pool = True

def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)

# We want debug for jails starting/stopping
os.environ['IOCAGE_DEBUG'] = 'TRUE'

# FIXME: foreign schemas cannot be referenced when
# using `process_pool`
# @filterable
Expand Down

0 comments on commit e132e27

Please sign in to comment.