cjnfuncs 3.2.3__tar.gz → 3.2.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cjnfuncs
3
- Version: 3.2.3
3
+ Version: 3.2.4
4
4
  Summary: A collection of core functions for tool script writing
5
5
  Author-email: Chris Nelson <github@cjnaz.com>
6
6
  License-Expression: MIT
@@ -60,6 +60,11 @@ Project repo: https://github.com/cjnaz/cjnfuncs
60
60
 
61
61
  ## Key changes since the prior major public release (version 3.1)
62
62
 
63
+ 3.2.4 changes
64
+ - Minor, isolated changes
65
+ - core - trap/warning for attempting to open logging to file owned by root
66
+ - resourcelock - added /dev/shm deleted files note
67
+
63
68
  3.2.3 changes
64
69
  - Minor, isolated changes
65
70
  - configman.write() - the target directory tree is created if not existing, oneliner comment at top of written file
@@ -85,10 +90,11 @@ a user-defined lock.
85
90
 
86
91
  ## Revision history
87
92
 
88
- - 3.2.3 - 261022 - Minor, isolated features tuning to configman and resource_lock
89
- - 3.2.2 - 261002 - periodic_log output now includes `[category - <package>.<module>.<function>(<line number>)]` for debug traceability of where the log event came from.
90
- - 3.2.1 - 260526 - periodic_log now returns True/False whether the the call was logged. Minor changes in resourcelock.
91
- - 3.2 - 260506 - New features: persistent_config and shared memory block handling
93
+ - 3.2.4 261124 - core: trap/warning for attempting to open logging to file owned by root, added resourcelock /dev/shm deleted files note
94
+ - 3.2.3 261022 - Minor, isolated features tuning to configman and resource_lock
95
+ - 3.2.2 261002 - periodic_log output now includes `[category - <package>.<module>.<function>(<line number>)]` for debug traceability of where the log event came from.
96
+ - 3.2.1 260526 - periodic_log now returns True/False whether the the call was logged. Minor changes in resourcelock.
97
+ - 3.2 260506 - New features: persistent_config and shared memory block handling
92
98
  - 3.1.1 260207 - separate resourcelock_islocked logger, get_next_dt days/weeks offset
93
99
  - 3.1 251109
94
100
  Support for and use of child loggers,
@@ -40,6 +40,11 @@ Project repo: https://github.com/cjnaz/cjnfuncs
40
40
 
41
41
  ## Key changes since the prior major public release (version 3.1)
42
42
 
43
+ 3.2.4 changes
44
+ - Minor, isolated changes
45
+ - core - trap/warning for attempting to open logging to file owned by root
46
+ - resourcelock - added /dev/shm deleted files note
47
+
43
48
  3.2.3 changes
44
49
  - Minor, isolated changes
45
50
  - configman.write() - the target directory tree is created if not existing, oneliner comment at top of written file
@@ -65,10 +70,11 @@ a user-defined lock.
65
70
 
66
71
  ## Revision history
67
72
 
68
- - 3.2.3 - 261022 - Minor, isolated features tuning to configman and resource_lock
69
- - 3.2.2 - 261002 - periodic_log output now includes `[category - <package>.<module>.<function>(<line number>)]` for debug traceability of where the log event came from.
70
- - 3.2.1 - 260526 - periodic_log now returns True/False whether the the call was logged. Minor changes in resourcelock.
71
- - 3.2 - 260506 - New features: persistent_config and shared memory block handling
73
+ - 3.2.4 261124 - core: trap/warning for attempting to open logging to file owned by root, added resourcelock /dev/shm deleted files note
74
+ - 3.2.3 261022 - Minor, isolated features tuning to configman and resource_lock
75
+ - 3.2.2 261002 - periodic_log output now includes `[category - <package>.<module>.<function>(<line number>)]` for debug traceability of where the log event came from.
76
+ - 3.2.1 260526 - periodic_log now returns True/False whether the the call was logged. Minor changes in resourcelock.
77
+ - 3.2 260506 - New features: persistent_config and shared memory block handling
72
78
  - 3.1.1 260207 - separate resourcelock_islocked logger, get_next_dt days/weeks offset
73
79
  - 3.1 251109
74
80
  Support for and use of child loggers,
@@ -1,6 +1,7 @@
1
1
  [project]
2
2
  name = 'cjnfuncs'
3
- version = '3.2.3'
3
+ version = '3.2.4'
4
+ # 3.2.4 261124 Release - core: trap/warning for attempting to open logging to file owned by root, added resourcelock /dev/shm deleted files note
4
5
  # 3.2.3 261022 Release
5
6
  # configman.write() - the target directory tree is created if not existing, oneliner comment at top of written file
6
7
  # configman.write() - config_timestamp only updated when written by persistent_config.save()
@@ -285,11 +285,14 @@ These modules support setting child logger levels: configman, deployfiles, reso
285
285
  mungePath(_lfp.parent, mkdir=True) # Force make the target dir TODO Hang risk if not on local drive. rwt?
286
286
  _fmt = FILE_LOGGING_FORMAT if FileLogFormat == None else FileLogFormat
287
287
  log_format = logging.Formatter(_fmt, style='{')
288
- handler = logging.FileHandler(_lfp.full_path, "a")
289
- handler.setLevel(logging.DEBUG)
290
- handler.setFormatter(log_format)
291
- logger.handlers.clear()
292
- logger.addHandler(handler)
288
+ try:
289
+ handler = logging.FileHandler(_lfp.full_path, "a")
290
+ handler.setLevel(logging.DEBUG)
291
+ handler.setFormatter(log_format)
292
+ logger.handlers.clear()
293
+ logger.addHandler(handler)
294
+ except Exception as e:
295
+ logging.warning (f"Error attempting to open logging to <{_lfp.full_path}> - Continuing\n {type(e).__name__}: {e}")
293
296
 
294
297
  tool.log_dir = _lfp.parent
295
298
  tool.log_file = _lfp.name
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cjnfuncs
3
- Version: 3.2.3
3
+ Version: 3.2.4
4
4
  Summary: A collection of core functions for tool script writing
5
5
  Author-email: Chris Nelson <github@cjnaz.com>
6
6
  License-Expression: MIT
@@ -60,6 +60,11 @@ Project repo: https://github.com/cjnaz/cjnfuncs
60
60
 
61
61
  ## Key changes since the prior major public release (version 3.1)
62
62
 
63
+ 3.2.4 changes
64
+ - Minor, isolated changes
65
+ - core - trap/warning for attempting to open logging to file owned by root
66
+ - resourcelock - added /dev/shm deleted files note
67
+
63
68
  3.2.3 changes
64
69
  - Minor, isolated changes
65
70
  - configman.write() - the target directory tree is created if not existing, oneliner comment at top of written file
@@ -85,10 +90,11 @@ a user-defined lock.
85
90
 
86
91
  ## Revision history
87
92
 
88
- - 3.2.3 - 261022 - Minor, isolated features tuning to configman and resource_lock
89
- - 3.2.2 - 261002 - periodic_log output now includes `[category - <package>.<module>.<function>(<line number>)]` for debug traceability of where the log event came from.
90
- - 3.2.1 - 260526 - periodic_log now returns True/False whether the the call was logged. Minor changes in resourcelock.
91
- - 3.2 - 260506 - New features: persistent_config and shared memory block handling
93
+ - 3.2.4 261124 - core: trap/warning for attempting to open logging to file owned by root, added resourcelock /dev/shm deleted files note
94
+ - 3.2.3 261022 - Minor, isolated features tuning to configman and resource_lock
95
+ - 3.2.2 261002 - periodic_log output now includes `[category - <package>.<module>.<function>(<line number>)]` for debug traceability of where the log event came from.
96
+ - 3.2.1 260526 - periodic_log now returns True/False whether the the call was logged. Minor changes in resourcelock.
97
+ - 3.2 260506 - New features: persistent_config and shared memory block handling
92
98
  - 3.1.1 260207 - separate resourcelock_islocked logger, get_next_dt days/weeks offset
93
99
  - 3.1 251109
94
100
  Support for and use of child loggers,
File without changes
File without changes
File without changes
File without changes