<info@gno.de> ezt írta (időpont: 2022. nov. 17., Cs, 8:19):
There is no disadvantage known when using it.

Thank you!
But, there is.
I have a special case, because I suffer with a low space storage device. I know, this is my fault, but anyway, it IS a problem (although I regularly free up space, something eats it very quickly, and I cannot guess what it is). I also kwo that Black Friday is coming... But the problem is currently existing.

So I realized that pwb.py wants to log soemthing even if I use -nolog. It also wants to cache something or read some cache, not that I wuld have said to it to do so. And if pwb. py is unhappy with this, it
* writes many kilometers of error messages, that I cannot read, becuase 90% ran out of screen (I don't think any developer wants to read this in the life)
* generates additional errors during writing the previous errors, so the message gets pretty long
* the witing itself last half a minute or a minute (yes, so long!), and takes my time unless I use ctrl C.
* I cannot find he useful writing on screen, if it exists at all
* the task is often not completed or partially completed, even if it has nothing to do with the storage device.

I think it does not take seriously the -nolog.

Example 1:
I wrote a script which generates lists in memory, compares with the existing lists on Wikipedia and uploads if there is a difference.
This script ran 10 minutes before it found the first list to upload. It wrote all the titles on screen, so I know, it has just created the appropriate list.
But INSTEAD of saving it to wiki, it began to write this long looped error message, and did not execute the put command, rather it terminated.
After I freed up soma space, it ran properly.

Example 2:
I run  python pwb.py -version -nolog because I know you would ask for it.
For the first time it generated a mile long error message again, and did not writ the config which it should have done. Then I freed up some space, and itt worked. So -nolog is useless if I want to avoid troubles. Here goes the VERY tail of the first run, and the result of the second run below.

--- Logging error ---
Traceback (most recent call last):
  File "C:\Python37\lib\logging\handlers.py", line 69, in emit
    if self.shouldRollover(record):
  File "C:\Python37\lib\logging\handlers.py", line 186, in shouldRollover
    self.stream.seek(0, 2)  #due to non-posix-compliant Windows feature
OSError: [Errno 28] No space left on device
Call stack:
  File "pwb.py", line 524, in <module>
    main()
  File "pwb.py", line 508, in main
    if not execute():
  File "pwb.py", line 489, in execute
    run_python_file(filename, script_args, module)
  File "pwb.py", line 152, in run_python_file
    main_mod.__dict__)
  File "pywikibot\scripts\version.py", line 106, in <module>
    main()
  File "pywikibot\scripts\version.py", line 102, in main
    pywikibot.output('\t{}: {}'.format(lang, username))
  File "c:\Pywikibot\pywikibot\tools\_deprecate.py", line 399, in wrapper
    return obj(*__args, **__kw)
  File "c:\Pywikibot\pywikibot\logging.py", line 170, in info
    logoutput(msg, *args, **kwargs)
  File "c:\Pywikibot\pywikibot\tools\_deprecate.py", line 399, in wrapper
    return obj(*__args, **__kw)
  File "c:\Pywikibot\pywikibot\logging.py", line 152, in logoutput
    logger.log(level, msg, extra=context, **kwargs)
Message: '\t*: BinBot'
Arguments: ()
--- Logging error ---
Traceback (most recent call last):
  File "C:\Python37\lib\logging\handlers.py", line 69, in emit
    if self.shouldRollover(record):
  File "C:\Python37\lib\logging\handlers.py", line 186, in shouldRollover
    self.stream.seek(0, 2)  #due to non-posix-compliant Windows feature
OSError: [Errno 28] No space left on device
Call stack:
  File "c:\Pywikibot\pywikibot\comms\http.py", line 81, in flush
    log('Closing network session.')
  File "c:\Pywikibot\pywikibot\tools\_deprecate.py", line 399, in wrapper
    return obj(*__args, **__kw)
  File "c:\Pywikibot\pywikibot\logging.py", line 255, in log
    logoutput(msg, *args, level=VERBOSE, **kwargs)
  File "c:\Pywikibot\pywikibot\tools\_deprecate.py", line 399, in wrapper
    return obj(*__args, **__kw)
  File "c:\Pywikibot\pywikibot\logging.py", line 152, in logoutput
    logger.log(level, msg, extra=context, **kwargs)
Message: 'Closing network session.'
Arguments: ()
--- Logging error ---
Traceback (most recent call last):
  File "C:\Python37\lib\logging\handlers.py", line 69, in emit
    if self.shouldRollover(record):
  File "C:\Python37\lib\logging\handlers.py", line 186, in shouldRollover
    self.stream.seek(0, 2)  #due to non-posix-compliant Windows feature
OSError: [Errno 28] No space left on device
Call stack:
  File "c:\Pywikibot\pywikibot\comms\http.py", line 87, in flush
    log('Network session closed.')
  File "c:\Pywikibot\pywikibot\tools\_deprecate.py", line 399, in wrapper
    return obj(*__args, **__kw)
  File "c:\Pywikibot\pywikibot\logging.py", line 255, in log
    logoutput(msg, *args, level=VERBOSE, **kwargs)
  File "c:\Pywikibot\pywikibot\tools\_deprecate.py", line 399, in wrapper
    return obj(*__args, **__kw)
  File "c:\Pywikibot\pywikibot\logging.py", line 152, in logoutput
    logger.log(level, msg, extra=context, **kwargs)
Message: 'Network session closed.'
Arguments: ()

c:\Pywikibot>python pwb.py -version -nolog
Pywikibot: [https] r-pywikibot-core.git (8f3a50c, g1, 2022/10/10, 17:24:18, OUTDATED)
Release version: 7.7.1
setuptools version: 57.0.0
mwparserfromhell version: 0.6.3
wikitextparser version: 0.51.0
requests version: 2.25.1
  cacerts: C:\Python37\lib\site-packages\certifi\cacert.pem
    certificate test: ok
Python: 3.7.4 (tags/v3.7.4:e09359112e, Jul  8 2019, 20:34:20) [MSC v.1916 64 bit (AMD64)]
PYWIKIBOT_DIR: Not set
PYWIKIBOT_DIR_PWB: ''
PYWIKIBOT_NO_USER_CONFIG: Not set
Config base dir: c:\Pywikibot
Usernames for family 'wikipedia':
        *: BinBot