-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set up Samba logging within autoenroll script
We can leverage Samba's logging system to get a better understanding as to what's going on during the lifetime of the autoenroll script. Mock has to be wrangled a bit to satisfy the actual `lp` object.
- Loading branch information
1 parent
cf6240b
commit f156b82
Showing
4 changed files
with
16 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
def LoadParm(smb_conf=None): | ||
if smb_conf is None: | ||
return | ||
print('Loading smb.conf') | ||
with open(smb_conf, 'r') as f: | ||
print(f.read()) | ||
class LoadParm(object): | ||
def __init__(self, smb_conf=None): | ||
if smb_conf is None: | ||
return | ||
print('Loading smb.conf') | ||
with open(smb_conf, 'r') as f: | ||
print(f.read()) | ||
|
||
def log_level(self): | ||
return 0 |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
def logger_init(_name, _level): | ||
pass |